Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Redirecting old Domain Name


Guest

Recommended Posts

Hi All

 

OK I have just purchased a new domain name and and have it setup to my DNS how now do I go about redirecting the old domain name to point to the new one.

 

Have done a search but could not find something on the same lines as to what i want.

 

it is an os commerce site using a .htaccess

 

# -FrontPage-

 

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

 

<Limit GET POST>

order deny,allow

deny from all

allow from all

</Limit>

<Limit PUT DELETE>

order deny,allow

deny from all

</Limit>

AuthName

AuthUserFile /home/*******/public_html/_vti_pvt/service.pwd

AuthGroupFile /home/*******/public_html/_vti_pvt/service.grp

 

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

 

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}

 

 

 

Regards

 

Liam

Link to comment
Share on other sites

Sorry had to bump this one..

 

Thought there might be someone out there to help me on this one...

 

Regards

 

Sligoman

Link to comment
Share on other sites

Forum rules say BUMPING NOT ALLOWED

 

Anyway, its htaccess to sort

 

This entry will redirect:

 

RewriteEngine on

 

RewriteCond %{HTTP_HOST} ^my-old-site.co.uk$ [OR]

RewriteCond %{HTTP_HOST} ^www.my-old-site.co.uk$

RewriteRule ^(.*)$ http://www.my-new-site.co.uk.co.uk/[R=301,L]

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Hi All

 

OK I have just purchased a new domain name and and have it setup to my DNS how now do I go about redirecting the old domain name to point to the new one.

You can park the domain in your control panel.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Thanks Sam & Jack for the info a great help

 

Best Regards

 

Liam

 

ps Have slapped my wrist for the infringement

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...