Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rewrite vs. 404

Status
Not open for further replies.

saraadmin

Programmer
Joined
May 9, 2005
Messages
3
Location
GB
I'm just trying to provide some backwards compatibility to on old version of my PHP database.

I've got the following RewriteRule:

RewriteRule ^/search_from_listings\.php\?artist_id=([0-9]+)$ /?artist&id=$1 [R]

which I want to direct requests like:
to

However, I just get a 404. cannot find 'search_from_listings.php'.

Does anyone know why its returning 404 in preference to following the RewriteRule?

Cheers,

(Apache 2.0.54)
 
OK, this is getting really desperate.

Why does this match:
RewriteRule ^/search_from_listings.php?(.*)$
while this doesn't:
RewriteRule ^/search_from_listings.php?artist_id=([0-9]*)$
If anyone has absolutely any ideas at all please just tell me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top