Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

301 woes



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!


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.



Featured Threads

Hot Threads This Week

Hot Threads This Month