Jump to content



Latest News: (loading..)

- - - - -

Change URL of the webshop


  • Please log in to reply
5 replies to this topic

#1   musiige

musiige
  • Members
  • 1 posts
  • Real Name:Deo

Posted 11 July 2012 - 01:55 PM

Hey,
The URL of my webshop is currently:

www.myshop/catalog.dk

How can I link it to:
www.myshop.dk

thanks

#2 ONLINE   Praful Kamble

Praful Kamble
  • Members
  • 265 posts
  • Real Name:Praful
  • Gender:Male
  • Location:Pune, India

Posted 11 July 2012 - 02:08 PM

@musiige

Just add 301 redirect rule to htaccess.
Like post..hit LIKE button.

osCommerce | Joomla | WordPress | Magento | SEO | CakePHP | CI

Guaranteed Website Speed Optimization!!

#3   14steve14

14steve14

    STORE OWNER NOT CODER

  • Members
  • 3,081 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Dorset UK

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.

#4   MrPhil

MrPhil
  • Members
  • 4,139 posts
  • Real Name:Phil
  • Gender:Male

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   Jack_mcs

Jack_mcs
  • Members
  • 25,316 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

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.

#6   MrPhil

MrPhil
  • Members
  • 4,139 posts
  • Real Name:Phil
  • Gender:Male

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.