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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.