http://www.dragoman.com/destinations/A
to
http://www.dragoman.com/destinations/pl ... ?areaSet=A
Using the following in a .htaccess file:
- Code: Select all
RewriteBase /destinations/
RewriteRule ^([A-Z])$ places.php?areaSet=$1 [L]
But it just ends up 404'ing.
My entire .htaccess below:
- Code: Select all
RewriteEngine On
#Rewrite for Trip categories
RewriteBase /
RewriteRule ^([A-Z]{3,5}[0-9]?)$ /destinations/trips.php?tripCat=$1 [L]
RewriteRule ^([A-Z]{3,5}[0-9]?)\.php$ /destinations/trips.php?tripCat=$1 [L]
RewriteRule ^([A-Z]{3,5}[0-9]?)\.htm$ /destinations/trips.php?tripCat=$1 [L]
RewriteRule ^([A-Z]{3,5}[0-9]?)\.html$ /destinations/trips.php?tripCat=$1 [L]
#Rewrite for Trip Areas
RewriteBase /destinations/
RewriteRule ^([A-Z])$ places.php?areaSet=$1 [L]
RewriteOptions inherit
- Code: Select all