Post by jty » Tue Nov 18, 2008 1:25 pm

Hello
I would like to install Open Cart 0.7.9RC3 in a subfolder eg www.mydomain.com/shop/

Part 1.
1. Where do I put the .htaccess for URL alias. It would be in the root ie www.mydomain.com. Correct ?
2. And in that htaccess, I would put

Code: Select all

RewriteBase /shop/
Correct ?
3. Do I also need an .htaccess file in the /shop/ folder ?

Part 2.
And then I want to redirect www.mydomain.com to always go to www.mydomain.com/shop/
So I would add

Code: Select all

Redirect 301 /index.php http://www.mydomain.com/shop/
to my htaccess file. Correct ?

Part 3.
And then in Google Webmasters tools, I would put shop/g_sitemap.php into the sitemap field. Correct ?
I am using the SEO contirbution

Google is having problems with me  :'(

Trying to submit the sitemap from the SEO Contribution but keep getting this Google error:
Sitemap errors and warnings
Details - Network unreachable: DNS issue
We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.
Last edited by jty on Tue Nov 18, 2008 2:10 pm, edited 1 time in total.

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by jty » Tue Nov 18, 2008 4:58 pm

I confirm that my Open Cart is stuffed !

In my root dir, my .htaccess to point the .com to the /shop/ folder is:

Code: Select all

DirectoryIndex index.php index.html index.htm default.html default.htm home.html
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

Redirect 301 /index.htm http://www.mydomain.com/shop/
Redirect 301 /index.html http://www.mydomain.com/shop/
Redirect 301 /index.php http://www.mydomain.com/shop/

# Catch 404 errors
ErrorDocument 404 /shop/index.php
I don't know what the stuff on top is for. It came from my webhost

Then in my /shop/folder, my .htaccess to turn on URL alias is :

Code: Select all

#Remove the hash at the beginning of the line below if you need to disable register_globals!
#php_flag register_globals Off 

Options +FollowSymlinks

RewriteEngine On

# Put your installation directory here:
# If your URL is www.example.com/shop/ - use /shop/
# If your URL is www.example.com/ - use /
RewriteBase /shop/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

# Catch 404 errors
ErrorDocument 404 /index.php
When I try and submit the SEO contribs sitemap to Google, Google keeps saying:
Sitemap errors and warnings
Details    -    Network unreachable: DNS issue
We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.
For some reason Google cannot get into my Open Cart. Google came around the other day and couldn't get in so it's not just the SEO sitemap that is the problem.

Where have I gone wrong. Can someone help please. Thank-you

I am able to get into my Open Cart with URL alias but if Google can't get in, then the whole thing is totally useless.

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by hm2k » Tue Nov 18, 2008 5:54 pm

Post the live URL.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by jty » Tue Nov 18, 2008 6:28 pm

I ended up moving my install to the root and it's OK now
Phew.
Last edited by jty on Wed Nov 19, 2008 10:14 am, edited 1 time in total.

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am
Who is online

Users browsing this forum: No registered users and 2 guests