Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.htaccess file modification

Tags:

php

.htaccess

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?

This is how it looks like now:

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

Thanks.

like image 767
sanders Avatar asked Dec 31 '22 01:12

sanders


1 Answers

Put this before the last line.

RewriteCond %{REQUEST_URI} !^/rss\.php$
like image 169
Ian Roke Avatar answered Jan 08 '23 17:01

Ian Roke