Post by Den9191 » Wed Apr 24, 2013 9:41 pm

Hello,

My opencart installation is installed in the "store" subdirectory. The reason for this is that I host quite some domains below my public_html (provider) so I couldn't install Opencart in that root.
If you go to http://www.website.com it works perfectly so that's not the problem. The issue is if you browse within the website it changes the URL to http://www.website.com/store/seo-category. If I remove /store manually so the URL is http://www.website.com/seo-category it also works fine.
Is there any way to remove that /store from all internal links? I already created a custom top menu without the /store. At the moment google sees that as dublicate content because both (with or without store) work and both are getting indexed. Is there a way to easily change the side menu links or do some kind of trick within the /htacess file?

Info:
New Installation
Version: 1.5.3.1
vqmod installed

Thanks in advance!

Den

Newbie

Posts

Joined
Wed Apr 24, 2013 9:24 pm

Post by dmsims » Wed Apr 24, 2013 10:54 pm

You need to setup .htaccess so that it rewrites that domain to the subdirectory

Active Member

Posts

Joined
Sat Apr 13, 2013 6:05 pm

Post by Den9191 » Mon Apr 29, 2013 2:58 pm

Hi dmsims,

thanks for your reply.

So it is not prossible to completely remove /store from all links? Also for products which is:
http://www.site.com/store/product. I'd like to change that to http://www.site.com/product.

Thanks.

Den
http://www.telefoonhoesjes1.nl

Newbie

Posts

Joined
Wed Apr 24, 2013 9:24 pm

Post by MarketInSG » Mon Apr 29, 2013 7:37 pm

look into your config.php file. Remove all /store from the links. All generated links will be without /store now :)


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by Den9191 » Mon Apr 29, 2013 8:26 pm

Thanks MarketInSG, that did the trick! :)

Newbie

Posts

Joined
Wed Apr 24, 2013 9:24 pm

Post by paisleybay » Fri Oct 11, 2013 10:32 am

@MarketInSG

Hi

Please refer to your post dated April 29, 2013 in advice to "den9191" to remove subdirectory reference from all URL's/ links:
look into your config.php file. Remove all /store from the links. All generated links will be without /store now
Does this have to be done, along with suggestion of "dmsims" dated April 24, 2013 under same topic:
You need to setup .htaccess so that it rewrites that domain to the subdirectory
Kindly clarify. Thanks & regards.

New member

Posts

Joined
Sat Dec 08, 2012 1:55 am

Post by MarketInSG » Fri Oct 11, 2013 1:43 pm

you won't want to do both if your store is no longer in the sub directory


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by paisleybay » Fri Oct 11, 2013 3:48 pm

Its like this.

My current store is working well at http://mysite.com. It is a "root" installation, using OC 1.5.4.1 & theme 'x'.
I have developed a revised version in a subdirectory "newstore", with OC 1.5.5.1 & theme 'y' (the OC version upgrade is necessary, as theme 'y' works only with that version & above). I now want to make the dev store live, replacing the current one.

I want the dev store to be in the sub-directory only - because my attempt to move it to root was disastrous (though I followed all the steps outlined in OC Docs & in Fora for moving). So the question: what do I need to do to
1. Make mysite.com load the new store in the sub-directory? AND
2. Get rid of the /newstore reference in URLS?

Thanks for any helpful pointers. Regards.

New member

Posts

Joined
Sat Dec 08, 2012 1:55 am

Post by MarketInSG » Fri Oct 11, 2013 3:52 pm

honestly, I would recommend you to just move it out of the folder. It's pretty easy.

1. Upload the installer folder will do and run website.com/install. It should upgrade.
2. Move the dev site out of the folder and it should then work

make a backup of database before you proceed


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by shahid1122 » Sat Dec 08, 2018 9:33 pm

https://shop.miagigyani.com/dir/
How can i remove the /dir/ from the url?

Newbie

Posts

Joined
Sat Dec 08, 2018 9:30 pm
Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 73 guests