iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar 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.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-01-2008, 08:14 AM
WebProWorld Pro
 
Join Date: Aug 2005
Posts: 104
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, 07:26 PM
WebProWorld Member
 
Join Date: Sep 2006
Posts: 26
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

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

BB 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 01:11 AM
moving to uk server and .co.uk domain ? rmoss_uk Google Discussion Forum 5 12-14-2006 06:52 AM
Moving Domain - Need Advice roam_dx Search Engine Optimization Forum 6 02-05-2005 11:10 AM
Effects of moving pages to diff. directory markbm Search Engine Optimization Forum 10 05-09-2004 04:25 PM
Moving from free hosting to my own domain johreiki Search Engine Optimization Forum 2 05-02-2004 12:05 AM


All times are GMT -4. The time now is 11:18 AM.



Search Engine Optimization by vBSEO 3.3.0