kensbeijing Posted January 6, 2010 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 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
Archived
This topic is now archived and is closed to further replies.