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

Go Back   WebProWorld > eCommerce > Hosting Issues
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Hosting Issues This forum deals with various web hosting issues that Webmasters deal with. Everyone is encouraged to share thier ideas and concerns.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-30-2008, 05:59 AM
WebProWorld New Member
 

Join Date: Jul 2007
Posts: 17
Attila001122 RepRank 0
Default domain redirect question

Hi,

I have 2 website, ump,com, and surgicaltechnology,com.
Until recently they had identical content on them.

I made some development on surgicaltechnology.

I am planing to redirect the users from ump to surgicaltechnology, and would like to know, what happends if someone requests a page from the "old" ump, what does not exist on the new surgicaltechnology.

Do they get a "Page not found" message, or end up on the index.html on surgicaltechnology...

Thanks in advance

Attila
Reply With Quote
  #2 (permalink)  
Old 03-30-2008, 01:49 PM
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 833
speed RepRank 1
Default Re: domain redirect question

It depends on how you do the redirect if you do:

RewriteEngine On
RewriteRule (.*) http://www.surgicaltechnology.com/$1 [R=301,L]

Then all pages should redirect to equivalent pages on the new domain so if they are not there then you get a 404.

If you do:

RewriteEngine On
RewriteRule (.*) http://www.surgicaltechnology.com/ [R=301,L]

Then all the pages on the old domain should take the visitor to the home of the new domain.

You can also redirect folders/files with something like:

RewriteRule ^olddir/(.*)$ http://www.surgicaltechnology.com/newdir/$1 [R=301,L]
__________________
TOLRA Micro Systems Limited US & UK Web Hosting with Continuous Data Protection
Web Directory 2 for 1 Offer : Web Directory Script
Reply With Quote
  #3 (permalink)  
Old 03-30-2008, 02:37 PM
WebProWorld New Member
 

Join Date: Jul 2007
Posts: 17
Attila001122 RepRank 0
Default Re: domain redirect question

Thanks, that seems to answer to my question.

And it seems clear.

If I may, I would like to get the matter one step further:

The redesign of the new site also involved renaming the html filenames from (example) surginst.html to SurgicalInstruments.html and similar renames

Is there a syntax (on my level) where I could redirect the pages to pages too ?
I have 10-15 pages what I think my visitors have as bookmark, so I just would like them to notice the "upgrade" instead of ending up just on the home page...
I would like to avoid the redirection on .html level (ie. the page comes up and in a second the page where it is redirected to)

Thanks in advance !

Attila
Reply With Quote
  #4 (permalink)  
Old 03-30-2008, 03:38 PM
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 833
speed RepRank 1
Default Re: domain redirect question

You should be able to use:

redirect 301 /oldpath/oldfile.html http://www.surgicaltechnology.com/newpath/newfile.htm

Adding 1 line per file that needs redirecting.
__________________
TOLRA Micro Systems Limited US & UK Web Hosting with Continuous Data Protection
Web Directory 2 for 1 Offer : Web Directory Script
Reply With Quote
  #5 (permalink)  
Old 03-30-2008, 08:10 PM
WebProWorld New Member
 

Join Date: Jul 2007
Posts: 17
Attila001122 RepRank 0
Default Re: domain redirect question

Hi Speed !

Thanks a lot !

So far that should be enough for me.
I hope I will be able to do a hickup-free redirection...

Thanks again, you just give me the exact help I needed.

Regards

Attila
Reply With Quote
  #6 (permalink)  
Old 03-31-2008, 09:21 AM
wige's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jun 2006
Location: United States
Posts: 1,782
wige RepRank 4wige RepRank 4wige RepRank 4wige RepRank 4
Default Re: domain redirect question

One thing to note is that it will probably be easiest to manage this if you do two redirections. The first is on the original domain name redirecting traffic to the equivalent URL on the new domain, as speed suggested:

RewriteEngine On
RewriteRule (.*) http://www.surgicaltechnology.com/$1 [R=301,L]

Then on the new domain, do the individual redirects for the common changed URLs. This way, if some URLs are missed or changes are needed, you won't have to go searching through the config files for both domains to track down a redirect. Users and search engines would be redirected twice, but they are generally tolerant of three to four redirects before an error is assumed.
__________________
The best way to learn anything, is to question everything.
Reply With Quote
  #7 (permalink)  
Old 04-02-2008, 06:22 AM
WebProWorld New Member
 

Join Date: Jul 2007
Posts: 17
Attila001122 RepRank 0
Default Re: domain redirect question

Hi guys,

Thanks for all the god and well explained advise.
I going to try them...

Thanks again
Reply With Quote
Reply

  WebProWorld > eCommerce > Hosting Issues
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
301 Redirect Question MtraX Search Engine Optimization Forum 11 09-28-2005 07:27 AM
Another 301 redirect question paulevison Search Engine Optimization Forum 0 09-23-2005 06:23 AM
ModRewrite: How to redirect [domain].com to www.[domain].com inflectionpt Web Programming Discussion Forum 2 02-12-2005 08:12 AM
Another 301 redirect question braknews Search Engine Optimization Forum 3 02-11-2005 12:14 PM
Redirect Question iamrussell Google Discussion Forum 3 06-01-2004 04:04 PM


Search Engine Optimization by vBSEO 3.2.0