
07-08-2010, 08:06:45
|
| |
Htaccess dosyasında ufak bir yardım. | | Arkadaşlar. CMS bir sitede alt klasöre resim galerisi ekledim. Ancak resim galerisinin adresine tıklandığında yine sitenin anasayfası geliyor. Sanırım .htaccess dosyasıyla ilgili bir sorun.
Sorunu tam olarak anlatmak gerekirse;
domain.com/resimler/index.html dosyasını açmak istediğimde
domain.com/resimler/index.html#/anasayfaya-hosgeldiniz/ adresiyle anasayfa çaılıyor.
htacces kodlarım ise şu şekilde. Kod: Options +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
RewriteEngine On
## uncomment the following line, if you are having trouble
## getting no_script_name to work
#RewriteBase /
## remove trailing slash
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(.+)/$
#RewriteRule ^(.+)/$ $1 [R=301,L]
## turn off index.html, it is for offline mode
RewriteRule ^.*index.html$ index.php [QSA]
## no, so we redirect to our front web controller
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule> Soruna yardımcı olacak arkadaşlara şimdiden teşekkürler. |