Forum Moderators: phranque

Message Too Old, No Replies

301 Redirect Permanent

PHP causing trouble?

         

King of Bling

10:34 pm on Mar 29, 2004 (gmt 0)

10+ Year Member



Simple question. I've read previous posts and followed the instructions, yet I still see the old page...

Looking to create a redirect permanent in my .htaccess file on a UNIX box running PHP.

Here is the entry:
Redirect permanent /food-quick-service.php?SubCatID=32 [*sitename*.com...]

I've uploaded the file, yet when I query the original url I still get the old page (not coffee.php).

Is this a syntax error or a PHP issue?

Thanks,
KOB

jdMorgan

2:36 pm on Mar 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure that the Redirect directive can handle query strings, since they are not technically part of the URL. You might want to try mod_rewrite for this application, since it can refer to a query string explicitly using RewriteCond %{QUERY_STRING}

Jim