Welcome to WebmasterWorld Guest from 54.234.129.215

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

301 woes

     

cpnmm

6:52 am on Mar 9, 2005 (gmt 0)

10+ Year Member



I'm having problems with my 301 redirects for a forum I have just upgraded.

I'm using:

redirect 301 /forum/viewforum.php?f=20 [domain.com...]

I get the error message:

Not Found

The requested URL /forum/viewforum.php was not found on this server.

Any help would be greatly appreciated!

jdMorgan

1:23 am on Mar 23, 2005 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



The Redirect directive doesn't work with query strings.

If you have access to mod_rewrite, you could try:


Options +FollowSymLinks
RewriteEngine on
RewriteCond %{QUERY_STRING} ^f=20
RewriteRule ^/forum/viewforum\.php$ http://www.domain.com/forum/forumdisplay.php?f=25

If putting the code in .htaccess, leave off the leading slash of the RewriteRule pattern.

Jim

 

Featured Threads

Hot Threads This Week

Hot Threads This Month