using htaccess if mysite starts with store.norish4u.com
8 posts
• Page 1 of 1
using htaccess if mysite starts with store.norish4u.com
Hi,
I need help.. If my site starts with store.norish4u.com
should i write
RewriteBase /store/
or just leave this as this?
RewriteBase /
I need help.. If my site starts with store.norish4u.com
should i write
RewriteBase /store/
or just leave this as this?
RewriteBase /
- norish4u
- Posts: 5
- Joined: Tue May 08, 2012 5:34 pm
Re: using htaccess if mysite starts with store.norish4u.com
need help please.....
- norish4u
- Posts: 5
- Joined: Tue May 08, 2012 5:34 pm
Re: using htaccess if mysite starts with store.norish4u.com
From the provided htaccess.txt:
# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
What you do depends upon what is the actual root path of the subdomain. Where is the store folder on disk in relation to /public_html or in relation to /home? When you made the subdomain, you could have specified a document root. Of course that depends on what tool you used to create the subdomain, I use Cpanel and get the the option to specify a document root, if you do not specify a document root, I believe the default location is outside the web root.
# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
What you do depends upon what is the actual root path of the subdomain. Where is the store folder on disk in relation to /public_html or in relation to /home? When you made the subdomain, you could have specified a document root. Of course that depends on what tool you used to create the subdomain, I use Cpanel and get the the option to specify a document root, if you do not specify a document root, I believe the default location is outside the web root.
- mc49285
- Posts: 95
- Joined: Tue Mar 13, 2012 11:28 pm
Re: using htaccess if mysite starts with store.norish4u.com
mc49285 wrote:From the provided htaccess.txt:
# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
What you do depends upon what is the actual root path of the subdomain. Where is the store folder on disk in relation to /public_html or in relation to /home? When you made the subdomain, you could have specified a document root. Of course that depends on what tool you used to create the subdomain, I use Cpanel and get the the option to specify a document root, if you do not specify a document root, I believe the default location is outside the web root.
thank you mc49285 for your reply, from cpanel there is an option of subdomain and from that i create this subdomain, the document root is public_html/store. please advise
- norish4u
- Posts: 5
- Joined: Tue May 08, 2012 5:34 pm
Re: using htaccess if mysite starts with store.norish4u.com
If that is true, then Cpanel wrote to your .htaccess file in public_html with the redirection. So the RewriteBase /store/ goes into a .htaccess file in the store directory, not the public_html directory.
- mc49285
- Posts: 95
- Joined: Tue Mar 13, 2012 11:28 pm
Re: using htaccess if mysite starts with store.norish4u.com
mc49285 wrote:If that is true, then Cpanel wrote to your .htaccess file in public_html with the redirection. So the RewriteBase /store/ goes into a .htaccess file in the store directory, not the public_html directory.
so what you are saying that i have to put the RewriteBase /store/ and not leave it blank (i.e. RewriteBase /) for the SEO to work?
- norish4u
- Posts: 5
- Joined: Tue May 08, 2012 5:34 pm
Re: using htaccess if mysite starts with store.norish4u.com
Just use rename the htaccess.txt and rename to .htaccess in the store root.
- mc49285
- Posts: 95
- Joined: Tue Mar 13, 2012 11:28 pm
Re: using htaccess if mysite starts with store.norish4u.com
alright great thanks!!! 

- norish4u
- Posts: 5
- Joined: Tue May 08, 2012 5:34 pm
8 posts
• Page 1 of 1
Return to Installation, Upgrade, & Config Support
Who is online
Users browsing this forum: MrDeeTop and 15 guests













