Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
Berserker
Will this module work for an addon domain? Im getting HTTP 404 Not Found when im using exactly the same .htaccess as the main domain.
It'll work for any domain.. the module doesn't care where it is placed.
What is not working for you is your rewrite rule.. that's completely separate from the module.
You've obviously messed up when creating a rewrite rule for your "addon" domain (what's an addon domain? I guess you mean a subdomain?).
Make sure that your site for the subdomain either loads htaccess files and has the proper rewrite rule in the .htaccess file for the subdomain site or set the rewrite rule in the virtualhost directive for the subdomain site.
Also make sure your subdomain's setup doesn't clash with your main domain!
If you aren't sure what to do you might want to search the net for more information or pay a developer to help you.
Hope that helps!
All the best..
Conor
ceon
Re: Ceon URI Mapping (SEO)
It's an add-on domain. It has it's own domain name instead of using the same domain name as the main account (subdomain).
I've spoken with my webhost and they said that their addon domains does support .htaccess files.
Below is what I have in my .htaccess file
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
The above rules is the same as in the main account and the module works there.
Thanks
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
Berserker
It's an add-on domain. It has it's own domain name instead of using the same domain name as the main account (subdomain).
The above rules is the same as in the main account and the module works there.
"Addon domains", "Main accounts".. I don't know what you mean.
A domain has a webspace account with it. That's it! :) Whatever this "addon" stuff is, you need to get your host to sort it out so that you can have it work as a "real" domain.
Sorry I can't be more help than that but this thread is for support of the module, not for general hosting/rewrite rule questions, you should start a new thread for that!
All the best...
Conor
ceon
Re: Ceon URI Mapping (SEO)
If you are using "add-on" domains, I find this works:
to your .htaccess add:
Code:
RewriteCond %{HTTP_HOST} ^(www\.)?YOUR-ADD-ON-DOMAIN-NAME\.com
RewriteRule .* - [L]
and for the directory the add-on lives in:
Code:
RewriteCond %{REQUEST_URI} !^/YOUR-ADD-ON-DIRECTORY.* [NC]
Re: Ceon URI Mapping (SEO)
Hi,
Quote:
Originally Posted by
kiddo
If you are using "add-on" domains, I find this works:
Thanks for posting the info.. hopefully it works!
What are these "add-on" domains you are both talking about?
Ridiculously cheap ways to host additional sites or something? (Hosting is so cheap these days I can't for the life of me see the need for anything like that?).
All the best..
Conor
ceon
Re: Ceon URI Mapping (SEO)
One more... Put the above in your main web root.
And if you use the CEON mod in the ad-on domain, put the .htaccess file in the directory of the add-on as if it was its own domain.
You can do this for multiple add-ons as long as you accomodate them (ignore them) in your main .htaccess
Clear as mud?
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
conor
Hi,
Thanks for posting the info.. hopefully it works!
What are these "add-on" domains you are both talking about?
Ridiculously cheap ways to host additional sites or something? (Hosting is so cheap these days I can't for the life of me see the need for anything like that?).
All the best..
Conor
ceon
Some hosts allow you to point additional domains at your account and host them as if they were stand-alone domains. For the most part, it works pretty well. Each add-on lives in a directory under the main web root.
I know BH, HM and CH offer this. Seems to be pretty common these days.
Re: Ceon URI Mapping (SEO)
I was hoping it would work but didnt...
This is what i have in the htaccess of the main domain
RewriteCond %{REQUEST_URI} !^/addondomain.com.* [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?addondomain\.com
Rewriterule .* - [L]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite livezilla directory
RewriteCond %{REQUEST_URI} !^/livezilla.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
And this is what I have in the htaccess of the addon domain
RewriteCond %{HTTP_HOST} ^(www\.)?addondomain\.com
RewriteRule .* - [L]
RewriteCond %{HTTP_HOST} ^addondomain\.com
RewriteRule ^(.*)$ http://www.addondomain.com/$1 [R=permanent,L]
#RewriteCond %{HTTP_HOST} ^addondomain.com$
#RewriteRule ^/?$ "http\:\/\/www\.addondomain\.com" [R=301,L]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
This module works in the main account but does not for the addon. There's not much difference between both htaccess file...
Thanks
Re: Ceon URI Mapping (SEO)
In ALL of the RewriteCond patterns above, remove the unwanted trailing .* part of the pattern where you are not capturing it in a backreference.
That is, !^/editors.* should be !^/editors here. Same for all of the other patterns.
Re: Ceon URI Mapping (SEO)
Quote:
Originally Posted by
g1smd
In ALL of the RewriteCond patterns, remove the unwanted trailing .* part of the pattern where you are not capturing it in a backreference.
Change the reference to 'admin' to reflect what your admin folder is actually called.
Beware of paths that are localised when used with RewriteRule when the .htaccess is in a folder.
Okay thanks, I will try that.
Quote:
Originally Posted by
DivaVocals
You have your store in a subdirectory and are using a redirect so that when folks hit your main domain they are redirected to the sub-directory??? Why do you have Zen Cart setup in this manner?? You could solve a LOT of your issues by moving Zen Cart into your site root and NOT use a sub directory at all..
Not really sure why. I do have non-Zen stuff stored on the server as well. I came from OSC a year or 2 back so that might have something to do with it.
Thanks for the replies.