Jump to content

Htaccess Multiple Rewrites?


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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...