Welcome to WebmasterWorld Guest from 23.20.50.146

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

301 woes

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

Junior Member

10+ Year Member

joined:May 5, 2003
posts:71
votes: 0


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!

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

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


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

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members