Hey,
The URL of my webshop is currently:
www.myshop/catalog.dk
How can I link it to:
www.myshop.dk
thanks
Latest News: (loading..)
Change URL of the webshop
Started by musiige, Jul 11 2012 01:55 PM
5 replies to this topic
#1
Posted 11 July 2012 - 01:55 PM
#3
Posted 11 July 2012 - 03:23 PM
Or move all your files up one level and put them in the root folder.
REMEMBER BACKUP, BACKUP AND BACKUP
I am not a coder, so dont bother sending PMs asking for help as you wont get any.
OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.
I am not a coder, so dont bother sending PMs asking for help as you wont get any.
OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.
#4
Posted 11 July 2012 - 04:37 PM
Best to do a silent (not 301) URL rewrite in /.htaccess (assuming you're on an Apache server, not IIS):
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/catalog [NC]
RewriteRule ^(.*)$ /catalog/$1 [L]
Visitors will go directly from your site home directory into the store. This leaves all bookmarks and search engine listings pointing to your site intact and working. It does not require any updating of your configure.php files. It keeps osC out of the root directory and isolated in its own subtree, where it won't interfere with anything else. Other applications (blog, forum, gallery, etc.) may easily be installed on your site, along with a "landing page", without fear of damaging your store.
#5
Posted 11 July 2012 - 04:55 PM
The search engines may complain if the url in their listing does not match the actual one. Plus, google uses the actual url for determining PR. A url with www can have a different PR of one without it, although I tihnk they are working to change this. The safeest way is to always use 301's when making a change to the url.
Recommended SEO Addons:
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#6
Posted 12 July 2012 - 05:09 PM
I didn't say anything about www., but it's a good point that you should settle on one or the other, and use a 301 redirect to force consistency.
I haven't heard of search engines getting upset over a silent change from /index.php to /catalog/index.php, but I suppose that's possible (have to research that... perhaps the problem is duplicate content between / and /catalog/index.php?). If so, it shouldn't hurt to do a 301, so bookmarks and search engine listings will show the /catalog. If you later remove the redirect/rewrite and add a landing page, all the bookmarks and SE listings should be unaffected.
I haven't heard of search engines getting upset over a silent change from /index.php to /catalog/index.php, but I suppose that's possible (have to research that... perhaps the problem is duplicate content between / and /catalog/index.php?). If so, it shouldn't hurt to do a 301, so bookmarks and search engine listings will show the /catalog. If you later remove the redirect/rewrite and add a landing page, all the bookmarks and SE listings should be unaffected.









