Another ?? Question

New to mod_rewrite? This is a good place to start.

Another ?? Question

Postby Dragoman » Fri Sep 05, 2003 1:57 am

I am trying to rewrite....

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
Dragoman
 

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 30 guests

cron