kensbeijing Posted January 6, 2010 Report Share Posted January 6, 2010 I'm trying to get a popup to occur if you add '_popup' to the end of any url for my site. RewriteEngine OnRewriteBase /RewriteRule ^home$ index.php?page=home [nc]RewriteRule ^about$ index.php?page=about [nc]RewriteRule ^support$ index.php?page=support [nc] After these first rewrites, is it possible to rewrite it again e.g. RewriteRule ^([a-z]+)_popup$ index.php?page=$1&popup=1 <<<<---- only if it passes the first rewrite? Link to comment Share on other sites More sharing options...
MrAdam Posted January 8, 2010 Report Share Posted January 8, 2010 Have a read up on mod_rewrite flags. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now