RewriteEngine On # Turn on the rewriting engine
RewriteRule . url.php [NC,L]
I'm redirecting all the requests to url.php but I want to leave index.php as is.
# Turn On ReWrite Engine
RewriteEngine On
# Exclude url.php and index.php from redirecting
RewriteCond %{REQUEST_URI} !^/(index|url)\.php
# Redirect to url.php
RewriteRule . url.php [NC,L]
This'll do the trick:
RewriteEngine On # Turnon the rewriting engine
RewriteRule ^/index\.php$ - [L]
RewriteRule . url.php [NC,L]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With