Hi mates, For some reason, I decided to remove zoints seo from my boards. But my forum has over 200 000 google index, and I dont want to loose it. Now my current url's are like this: mysite.com/the-name-of-the-topic-t123456.html Code (markup): Without zoints, the same url will be like this: mysite.com/showthread.php?t=123456 Code (markup): So, what is the .htaccess code to 301 redirect first url to the second one, so that I wont loose my google index. Best regards
Maybe something like: RewriteCond $1 t([0-9]+)\.html$ [NC] RewriteRule (.+) showthread.php?t=%1 [R=301,L] Haven't tested it though... Just winging it.
Well, sorry for flooding. With the above .htaccess code, it redirects like this: http://mysite.com/home/admin/domains/mysite.com/public_html/showthread.php?t=38711 Code (markup): maybe you can see what is wrong
Sorry I'm used to working w/ ISAPI Rewrite on IIS which is about 99% compatible w/ Mod Rewrite. You may need to include the following directives at the top of the .htaccess file: NOTE: I also added the http://www.mysite.com/ to the target URL inside the RewriteRule. Should not have omitted that previously. I am assuming the rules have been placed in the .htaccess in the root of your web.
Well one more thing When there are multiple pages, url's are like thisp2, p3 etc) http://mysite.com/centrino-t758p2.html Code (markup): The original url's must be like this, when its p2 http://mysite.com/showthread.php?t=758&page=2 Code (markup): Thanks