Results 1 to 1 of 1
I am trying to get a rule to send any php page except for
/index_holding.php
/fixes/footsteps.php
to /index_holding.php.
With much hair pulling, muttering, consulting the google oracle and
outright swearing, ...
- 11-06-2007 #1
Sending all but two specific pages to a named page
I am trying to get a rule to send any php page except for
/index_holding.php
/fixes/footsteps.php
to /index_holding.php.
With much hair pulling, muttering, consulting the google oracle and
outright swearing, I managed to get this which redirects all php
pages except /index_holding.
Obviously, this didn't allow me to run /fixes/footsteps.php!Code:Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_URI} !^/(index_holding.php) [NC] RewriteRule ^.*\.php$ /index_holding.php [R=301,L]
so I have come up with this rule
I am unsure if it will work and due to the particular set up I canCode:Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_URI} !^/(index_holding.php|fixes/footsteps.php) [NC] RewriteRule ^.*\.php$ /index_holding.php [R=301,L]
only test this on the live server. Can someone who knows what
they are doing cast their eye over this and see if it should work?
Thanks for any help.If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.


Reply With Quote