PDA

View Full Version : URL redirect after moving forum


JacquiiDesigns
12-17-2010, 08:48 PM
I hope I am phrasing this correctly...

I've moved my forum from the main root folder to the "forum" folder -- from http://jpicforum.info to http://jpicforum.info/forum/ -- and I would like to know how I can permanently redirect all my currently indexed "powered by vbulletin" pages to the new url structure.

My main forum index had been http://jpicforum.info/index1.php - but now the forum index is http://jpicforum.info/forum/ -- So for instance I want what was http://jpicforum.info/adult-writes/ to redirect to new http://jpicforum.info/forum/adult-writes/ url

What's the easiest way to accomplish this please?

Jacquii.

btw - I am using vBSEO...

calorie
12-17-2010, 09:00 PM
Maybe with htaccess... untested but perhaps something like this:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?jpicforum\.info
RewriteRule (.*) http://jpicforum.info/forum/$1 [R=301,L]

Roms
12-18-2010, 06:11 PM
Make an index page (just take a .txt file put this code in it and rename it index.html) and put it in the old folder...<script type="text/javascript"><!--window.location = "http://jpicforum.info/forum/"//--></script>

But, calories way is probably better lol ;)

metalguy639
12-22-2010, 02:47 AM
Yeah htaccess is a better way. you can also sometimes set up htaccess within your Cpanel if you are using that on your hosting package. i believe there is a link in the panel for redirection if I remember properly. The vBSEO guys would also probably have a really good idea of what to do as well.

JacquiiDesigns
12-24-2010, 07:43 PM
Thanks for the response guys

You can see all the pages we have indexed in Google (http://www.google.com/search?client=opera&rls=en&q=site:jpicforum.info&sourceid=opera&ie=utf-8&oe=utf-8) - particularly the links that go to the forum. Ideally it would be nice to simply have a script of some sort or url re-direct specifically for the forum posts.

I already have a redirect of sorts in place = browse to http://jpicforum.info/blablabla/ -- I use a meta refresh code to auto redirect to my new homepage.

<meta http-equiv="refresh" content="6; URL=http://jpicforum.info/"><a href="http://jpicforum.info/">Click here to redirect to the homepage.</a>

((sigh...))

IDK - I was just hoping that there would be an easy way to automatically redirect all old urls to the http://jpicforum.info/forum/ new 'forum' folder.

JacquiiDesigns
12-29-2010, 12:40 AM
Just as an fyi...

Actually it's pretty interesting. I have the vBSEO sitemap addon installed of course... It has been generated twice since I've re-opened my forum and interestingly enough -- it seems as if all my links have been correctly re-indexed with the http://jpicforum.info/forum/ url

I truly did not expect that to happen, and to happen so quickly. But apparently it has.

Anyway - thanks again for the suggestions ya'll - and happy 2011 to you all ;)

Jacquii.