Jump to content

RewriteEngine


jacko310592

Recommended Posts

hey guys,

i found on the net that its supposed to be possible to use multiple RewriteEngine's, but with the following code its not working:

 

#Allows Album page without '.php' ext
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^gallery/album?([a-zA-Z]+)?$ gallery/album.php?$1 [NC,L]


#Redirects all pages to Maintenance page
Options +FollowSymLinks
RewriteEngine Off
RewriteBase /
RewriteCond %{REQUEST_URI} !^/images/.*$
RewriteCond %{REQUEST_URI} !^/css/.*$ 
RewriteCond %{REQUEST_URI} !^/errors/maintenance\.php$
RewriteRule ^(.*)$ /errors/maintenance.php [R=307,L]

 

at the moment its just setting both of them to 'Off'

 

can anyone suggest why this is happening?

 

thanks guys

Link to comment
https://forums.phpfreaks.com/topic/184130-rewriteengine/
Share on other sites

i found on the net that its supposed to be possible to use multiple RewriteEngine's

 

You either misinterpreted what you found or where mislead.

 

at the moment its just setting both of them to 'Off'

 

can anyone suggest why this is happening?

 

I have not tested this theory, but it would seem obvious that the last directive found is the one that is excepted.

Link to comment
https://forums.phpfreaks.com/topic/184130-rewriteengine/#findComment-972228
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.