I was quite sure how to enable the same but unable to relocate the thread. Here is what i plan to acheive: A forum running on www.xyz.com plan to re-direct the entire forum to a sub-domain on abc.xyz.com how can i acheive this using a permanent 301 or 302 (best out of both) redirect ? more then 600,000 pages are already indexed via google, will there be any negative causes of using the same ? Thanks.
best bet it to keep where they are. If you do have to move them, 301 redirects are the best via mod_rewrite. Good luck...
can you give me exact codes for mod_rewrite ? since this vbulletin pages are dynamically generated, i want to move each and every thread/pages to new locations appropriately.
I will have to look for that. I am sure someone will chime in soon on that. Should only be a few lines of code...
Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^showthread.php?t=([^.]+)$ http://abc.domain.com/showthread.php?t=$1 [R=301,L]
but this shall only help in re-directing anything related with showthread.php to get transferred/re-directed to sub-domain additional directory. I want to transfer all the indexed content from root www.xyz.com/ to forum.xyz.com or www.xyz.com/forum Thanks Nintendo.
Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^([^.]+)$ http://forum.xyz.com/$1 [R=301,L] Everything will be moved there, even the index page of the domain..
Amazing. I was just thinking of this. Will this move from one folder to another? Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase /forums/ RewriteRule ^([^.]+)$ http://www.example.com/new_forums/$1 [R=301,L] Thanks
That'll add /new_forums/ to the URL of everything, if it doesn't cause an infinite loop every time it goes to a new URL. RewriteRule ^forum/([^.]+)$ http://www.domain.com/NEW-DIRECTORY/$1/ [R=301,L] for a different directory.
wonderful out there.. Last question: Since it is a forum, I have following pages on root folder / showthread.php (which leads to thousands of showthread.php?=xxxx pages) printthread.php (which leads to thousands of printthread.php?=xxxx pages) etc. etc. I am planning to add a custom CMS to the root folder, i am re-directing the entire forums to another sub-domain, wont the cms pages get re-directed as well ?? thanks
With RewriteRule ^([^.]+)$ the whole site get's moved. Only way around that is having a line for each type of URL you want moved. Like that RewriteRule ^showthread.php?t=([^.]+)$ http://abc.domain.com/showthread.php?t=$1 [R=301,L] code that only moves the threads.
thanks Nintendo for your time.. time to implement your suggestions above and spend some time learning the rewrite rules.. (never thought those small alterations can do such miracles)