Merhabalar. Mevcut url'lerimin sonuna / eklemek istiyorum.
Manuel olarak bir yönlendirme yapmasam da, aktif yapımda herhangibir url'in sonunda "/" koyarsam www/index sayfasına yönlendiriyor.
Temel site yapım şu şekildedir.
www
| |
| |__/blog
| |
| |__.htaccess (1)
|
|
|___.htaccess (2)
1. htaccess dosyam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
RewriteEngine onRewriteCond %{HTTP_HOST} ^localhost/ [NC]RewriteRule ^(.*)$ http://localhost/$1 [L,R=301,NC]RewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME}\.php -fRewriteRule ^(.*)$ $1.phpRewriteRule ^([^/_.]+)$ detay.php?url=$1 [L,QSA]RewriteRule ^sayfa/([^/_.]+)$ index.php?page=$1 [L,QSA]#404 hata sayfası yönlendirme koduErrorDocument 404 http://localhost/<IfModule mod_security.c>SecFilterEngine Off SecFilterScanPOST On</IfModule>2. Htaccess Dosyam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
RewriteEngine onRewriteCond %{HTTP_HOST} ^localhost/ [NC]RewriteRule ^(.*)$ http://localhost/$1 [L,R=301,NC]RewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME}\.php -fRewriteRule ^(.*)$ $1.phpRewriteRule ^hizmet/([^/_.]+)$ hizmet-detay.php?url=$1 [L,QSA]RewriteRule ^kurumsal/([^/_.]+)$ kurumsal-detay.php?url=$1 [L,QSA]RewriteRule ^referans/([^/_.]+)$ referans-detay.php?url=$1 [L,QSA]RewriteRule ^([^/_.]+)$ kategori-detay.php?category_url=$1 [L,QSA]RewriteRule ^([a-zA-Z0-9_-]+)/sayfa/([0-9]+)$ kategori-detay.php?category_url=$1&page=$2 [L,NC]#404 hata sayfası yönlendirme koduErrorDocument 404 http://localhost/<IfModule mod_security.c>SecFilterEngine Off SecFilterScanPOST On</IfModule>


