Başka bir soruda şu cevap verilmiş.
Benim htacsess dosyam şuESQARE yazdı: 02.04.2009, 20:27 İlk örnek için;
RewriteRule ^index.php?topic=([0-9]*) viewtopic.php?t=$1 [R=301,L]
İkinci örnek için;
RewriteRule ^index.php?board=([0-9]*) viewforum.php?f=$1 [R=301,L]
kodlarını .htaccess dosyanıza ekleyebilirsiniz. Daha farklı url adresleri yönlendirecekseniz ([0-9]*) değişkenini yönlendirme yapılacak eski url adresinde bulunuan sayılar için; $1 değişkenini de yönlendirilecek yeni url adresinde bulunan sayılar için kullanabilirsiniz.
Kod: Tümünü seç
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^index.php?topic=([0-9]*) viewtopic.php?t=$1 [R=301,L]
#
# Uncomment the statement below if URL rewriting doesn't
# work properly. If you installed phpBB in a subdirectory
# of your site, properly set the argument for the statement.
# e.g.: if your domain is test.com and you installed phpBB
# in http://www.test.com/phpBB/index.php you have to set
# the statement RewriteBase /phpBB/
#
#RewriteBase /
#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
# The following 3 lines will rewrite URLs passed through the front controller
# to not require app.php in the actual URL. In other words, a controller is
# by default accessed at /app.php/my/controller, but can also be accessed at
# /my/controller
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]
#
# If symbolic links are not already being followed,
# uncomment the line below.
# http://anothersysadmin.wordpress.com/2008/06/10/mod_rewrite-forbidden-403-with-apache-228/
#
#Options +FollowSymLinks
</IfModule>
# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
# module mod_authz_host to a new module called mod_access_compat (which may be
# disabled) and a new "Require" syntax has been introduced to mod_authz_host.
# We could just conditionally provide both versions, but unfortunately Apache
# does not explicitly tell us its version if the module mod_version is not
# available. In this case, we check for the availability of module
# mod_authz_core (which should be on 2.4 or higher only) as a best guess.
<IfModule mod_version.c>
<IfVersion < 2.4>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfVersion>
<IfVersion >= 2.4>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfModule>
<IfModule mod_authz_core.c>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfModule>
</IfModule>
ilk 25 tanesini göstereyim
Kod: Tümünü seç
1
viewtopic.php?t=8
404
18.09.2017
2
app.php/tag/2017
404
02.11.2017
3
app.php/tag/nakil
404
30.10.2017
4
app.php/tag/MESLEK
404
30.10.2017
5
app.php/tag/aof
404
01.11.2017
6
app.php/tag/vize
404
02.11.2017
7
app.php/tag/teog-2016-tercih
404
26.10.2017
8
app.php/tag/kontenjan
404
30.10.2017
9
app.php/tag/teog-2016
404
01.11.2017
10
app.php/tag/grafik
404
01.11.2017
11
app.php/tag/deneme
404
04.11.2017
12
app.php/tag/odsgm
404
03.11.2017
13
app.php/tag/basim
404
30.10.2017
14
app.php/tag/TEOG-MESLEK
404
27.10.2017
15
app.php/tag/MESLEK-ALAN
404
30.10.2017
16
app.php/tag/tarih
404
02.11.2017
17
viewforum.php?f=9
404
26.10.2017
18
app.php/tag/eyp-edp-2016
404
28.10.2017
19
app.php/tag/istanbul
404
02.11.2017
20
app.php/tag/teog-deneme
404
30.10.2017
21
viewforum.php?f=35
404
05.09.2017
22
app.php/tag/kar-tatili-olan-iller
404
02.11.2017
23
app.php/tag/final
404
02.11.2017
24
app.php/tag/teog-nakil
404
29.10.2017
25
app.php/tag/bursa
404
03.11.2017
1-Benim htacsess dosyamda zaten 301 yönlendirme kodu var. Başka ne eklemeliyim?
2-Rh Tag eklentisi varken taglar vardı. Ama 3.2 ile çakışınca eklnetiyi kaldırmıştım. Taglar için nasıl yönlendirme yapmalıyım. Ki 158 hatanın 100 tanesi tag içerikli