Jump to content

Htaccess Multiple Rewrites?


kensbeijing

Recommended Posts

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

Archived

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

×
×
  • Create New...