Jump to content

Redirect Help


toolman

Recommended Posts

RewriteRule does not include the query string. You have to test for that manually with a RewriteCond.

RewriteCond %{QUERY_STRING} =ref=test
RewriteRule ^directory/page.html http://www.website.com/directory/page.html?ref=test2 [R=301,L]

If that still doesn't work, try adding a /? after the ^.

Link to comment
https://forums.phpfreaks.com/topic/274094-redirect-help/#findComment-1410412
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.