Hi, I'm sure this is something really obvious, but hopefully someone can quickly point this out! When I type: www.mydomain.co.uk it foes to my hosts holding page. How do I get it to automatically go to www.mydomain.co.uk/catalog without actually typing the 'catalog' bit - or is it a case of redirecting everyone to it? Thank you
Latest News: (loading..)
Redirecting customers to shop from domain name
Started by zefeena, Today, 09:05 AM
3 replies to this topic
#1
Posted Today, 09:05 AM
#2
Posted Today, 09:39 AM
You could use htaccess redirect or even better simply move your shop to the root of the domain.
Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce
Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.
Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.
#3
Posted Today, 10:21 AM
Ha, don't even mention moving the files. I just don't get this 'root' thing. I have uploaded the files about 20 times and they just kept going in the wrong place or failing. I have the worlds worst internet connection and have already lost a sizable portion of my life, so they are staying where they are! I really thought they were in the right place as I copied the positioning from my other website and that is fine. Maybe that one re-directs. I'm not sure.
#4
Posted Today, 01:43 PM
If this is an "Apache" server (it will be if you're on a "Linux" server), edit or add the following file /.htaccess --
If you're on a Windows server (e.g., IIS), you'll have to find out from someone familiar with that server how to do it.
BTW, it's best to leave your shop in its own folder/directory (/catalog), so that you can easily add other applications (forum, gallery, blog, etc.) in the future without applications stepping on each other.
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/catalog [NC]
RewriteRule ^(.*)$ /catalog/$1 [L]
That's the ".htaccess" file in the site root. Note the period in the name.If you're on a Windows server (e.g., IIS), you'll have to find out from someone familiar with that server how to do it.
BTW, it's best to leave your shop in its own folder/directory (/catalog), so that you can easily add other applications (forum, gallery, blog, etc.) in the future without applications stepping on each other.









