Forums / All Other Contributions/Addons / More store in the same host with CEON URI Mapping?

More store in the same host with CEON URI Mapping?

Views: 1,052

Results 1 to 3 of 3
12 Sep 2011, 10:41 PM
#1
shades12345 avatar

shades12345

New Zenner

Join Date:
Feb 2011
Posts:
6
Plugin Contributions:
0

More store in the same host with CEON URI Mapping?

Hi ,
I want to create 4 diferent zen cart store in the same host . 1 principal domain is directly in the root and i have another 3 AddDomains.
Problem: I can`t acces my Add Domains ;
i think my .htaccess is the problem but i dont know how to config this file.
Can anyone help me ?
Thank you!

My .htaccess

RewriteEngine On

RewriteCond %{HTTP_HOST} ^[I]principalsite.com[/I]$ [NC]
RewriteCond %{REQUEST_URI} !^/[I]principalsite[/I] [NC]

RewriteCond %{REQUEST_URI} !^/editors [NC]
RewriteRule ^(.*)$ http://www.[I]principalsite.com[/I]/$1 [R=301,L]


 # =============================================================
<Files 403.shtml>
order allow,deny
allow from all
</Files>


## BEGIN CEON URI MAPPING REWRITE RULE

RewriteEngine On

# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite any URIs for some, popular specific file format extensions,
#   which are not covered by main file extension condition above
RewriteCond %{REQUEST_URI} !\.(mp3|mp4|h264)$ [NC]
# Don't rewrite any URIs for some specific file format extensions,
#   which are not covered by main file extension condition above
#   Uncomment the following line to apply this condition! (Remove the # at the start of the next line)
#RewriteCond %{REQUEST_URI} !\.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/xxxxxxx [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors/ [NC]
# Don't rewrite siteadaugat directory
RewriteCond %{REQUEST_URI} !^/xxxxxx/ [NC]
# Don't rewrite cameresupraveghere.biz directory
RewriteCond %{REQUEST_URI} !^/xxxxxxx.biz/ [NC]
# Don't rewrite css directory
RewriteCond %{REQUEST_URI} !^/css/ [NC]
# Don't rewrite hclbebe1 directory
RewriteCond %{REQUEST_URI} !^/hclbebe1/ [NC]
# Don't rewrite ebook directory
RewriteCond %{REQUEST_URI} !^/ebook/ [NC]
# Don't rewrite cgi-bin directory
RewriteCond %{REQUEST_URI} !^/cgi-bin/ [NC]
# Don't rewrite noris directory
RewriteCond %{REQUEST_URI} !^/noris/ [NC]
# Don't rewrite js directory
RewriteCond %{REQUEST_URI} !^/js/ [NC]
# Don't rewrite fonts directory
RewriteCond %{REQUEST_URI} !^/fonts/ [NC]
# Don't rewrite xxxxxxxxxxx directory
RewriteCond %{REQUEST_URI} !^/xxxxxxxxxxx/ [NC]
# Don't rewrite tempEP directory
RewriteCond %{REQUEST_URI} !^/tempEP/ [NC]
# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* index.php [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f [NC] 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).php$ index\.php?main_page=$1&%{QUERY_STRING} [L]
RewriteRule ^(.*).html$ index.php?main_page=$1&%{QUERY_STRING} [L] 
## END CEON URI MAPPING REWRITE RULE
12 Sep 2011, 10:46 PM
#2
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: More store in the same host with CEON URI Mapping?

Easy enough to figure out if it's the .htaccess preventing access to your add on domains. Back it up first, then delete it and see if you then have access.

The best way to learn is to try stuff. But, back it up first.

13 Sep 2011, 8:00 PM
#3
shades12345 avatar

shades12345

New Zenner

Join Date:
Feb 2011
Posts:
6
Plugin Contributions:
0

Re: More store in the same host with CEON URI Mapping?

yes is work ,
but i think is not ok without .htaccess , right?
i need some rules to insert in my .htaccess and i don`t know what should i put there

thx