. Htaccess dosyası modifikasyonu

3 Cevap php

I have a .htaccess file which arranges that all requests go through index.php. Now i would like to make an exception for rss.php. to go straight throuh rss.php. How do I do this?

Bu şimdi benziyor nasıl:

RewriteEngine on
RewriteBase /
RewriteRule !\.(js|ico|txt|gif|jpg|png|css)$ index.php

Teşekkürler.

3 Cevap

Son satırından önce koy.

RewriteCond %{REQUEST_URI} !^/rss\.php$

Veya alternatif dosya daha sonra yeniden yazma testlerin kalanını atlar eşleşen bir rewrite.

Mevcut RewriteRule önce aşağıdaki satırı koyarak index.php geçmeden yönlendirir.

RewriteRule  ^/rss.php  /rss.php  [L]

Benim / robots.txt dosyası ile bunu yapmak için bir yol için avcılık yaparken bu sayfada geldi.

mod_rewrite with apache1.3