WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

IT Discussion Forum Having IT issues? Got IT questions? Who doesn't? If you can't get your Apache to work with your MySQL or your php is choking on your ODBC... Let's see if we can help you come up with some ideas.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-01-2008, 07:14 AM
WebProWorld Member
 

Join Date: Aug 2005
Posts: 88
deadhippo RepRank 0
Default Moving site from directory to sub domain

Hi,
I am about to move a site from a directory to subdomain and I want to redirect a few pages and was wondering what the best way of doing that was. I'm not took worried about losing ranking as it is not the most popular site in the world but I don't want to break people's links to my homepage.

eg. www.mysite.com/directory --> directory.mysite.com

I see lots of redirect codes out there and I guess that is the problem . I can't figure out which would be the right one for me.

What do you think?
Reply With Quote
  #2 (permalink)  
Old 06-02-2008, 06:26 PM
WebProWorld New Member
 

Join Date: Sep 2006
Posts: 16
Jon-WebsiteCM RepRank 0
Default Re: Moving site from directory to sub domain

Mod rewrite something along the lines of:

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/directory/(.*)$
RewriteRule ^(.*)$ http://directory.example.com/$1 [L,R=301]
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving a domain name from one site to another arod777 Search Engine Optimization Forum 2 08-23-2007 12:11 AM
moving to uk server and .co.uk domain ? rmoss_uk Google Discussion Forum 5 12-14-2006 05:52 AM
Moving Domain - Need Advice roam_dx Search Engine Optimization Forum 6 02-05-2005 10:10 AM
Effects of moving pages to diff. directory markbm Search Engine Optimization Forum 10 05-09-2004 03:25 PM
Moving from free hosting to my own domain johreiki Search Engine Optimization Forum 2 05-01-2004 11:05 PM


Search Engine Optimization by vBSEO 3.2.0