What is wrong with my rule?

Discuss practical ways rearrange URLs using mod_rewrite.

What is wrong with my rule?

Postby 2levelsabove » Fri Dec 19, 2008 12:15 pm

Code: Select all
RewriteRule ^.+Classifieds_By_Make/([A-Za-z0-9-]+)/$      /classifiedsbymake.php?id=$1                    [NC,QSA,L]

please visit http://alltherides.com/classifiedsmakemodel.php

and click on any of the links.

I am trying to make a directory structure.
Posts: 12
Joined: Sun Feb 03, 2008 11:38 pm

Postby richardk » Sat Dec 20, 2008 10:59 am

The link gives a 404 error.

I'm guessing it should be
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteRule ^Classifieds_By_Make/([-a-z0-9]+)/?$ /classifiedsbymake.php?id=$1 [NC,QSA,L]
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 7 guests