Welcome Guest, Not a member yet? Register   Sign In
stop 404 if ? or & in URL
#2

[eluser]Mark van der Walle[/eluser]
The best way is to identify the old URLs and see to what new URLs they need to go and then in your .htaccess do something similar to:
Code:
RewriteRule ^oldpath$ newpath [L,R=301]

Ofcourse you would want that with a bit more regexing. The 301 tells search engines that the content has moved permanently (which ofcourse it sort of has).

If you can identify the pattern it is quite easy actually.


Messages In This Thread
stop 404 if ? or & in URL - by El Forum - 11-30-2007, 08:59 AM
stop 404 if ? or & in URL - by El Forum - 11-30-2007, 09:29 AM
stop 404 if ? or & in URL - by El Forum - 11-30-2007, 09:32 AM
stop 404 if ? or & in URL - by El Forum - 11-30-2007, 09:39 AM
stop 404 if ? or & in URL - by El Forum - 11-30-2007, 09:46 AM
stop 404 if ? or & in URL - by El Forum - 11-30-2007, 10:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB