I'm trying to use my .htaccess to pass both an id and a mode. Currently its passing an id and looks like this:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} .*/([0-9]+)/?$
RewriteRule .* /listing.php?id=%1 [L,QSA]
The link looks like this:
http://www.drlistings.com/villas/stunning_180_degree_ocean_view/4074/
I want to add a mode, such as:
http://www.drlistings.com/villas/stunning_180_degree_ocean_view/4074/inline
to pass
listing.php?id=%1&mode=%2
I've examined the other posted questions but theirs seem a lot more complex than what I am doing. The second parameter doesn't have to be numeric, although if its easier to do it numeric I'm fine with that. It can be before or after the id paramater, i'm flexible, such as:
http://www.drlistings.com/villas/stunning_180_degree_ocean_view/inline/4074/
or if it were numeric it would be a 0/1 flag situation:
http://www.drlistings.com/villas/stunning_180_degree_ocean_view/0/4074/
Thanks!