Page 210 of 245 FirstFirst ... 110160200208209210211212220 ... LastLast
Results 2,091 to 2,100 of 2445
  1. #2091
    Join Date
    May 2008
    Location
    Amarillo, TX
    Posts
    40
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by perfumbg View Post
    Here is a link for sollution if needed!

    https://github.com/torvista/CEON-URI-Mapping

    Kind regards and many thanks to mc12345678!

    Were you able to get this to work properly with Zen Cart v1.5.5d or v1.5.5e? If so, which one were you able to get it work with?

  2. #2092
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by ehswift View Post
    Were you able to get this to work properly with Zen Cart v1.5.5d or v1.5.5e? If so, which one were you able to get it work with?
    I was able to use either 1.5.5d or 1.5.5e with the software from the referenced link, though the important part of the difference between what is currently available from here and the github location is php 7.x. The version at github has so far been compatible with it.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #2093
    Join Date
    Apr 2014
    Location
    London
    Posts
    22
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Hi folks

    I'm having a problem with CEON uri mapping. Can somebody pls help.

    I have just moved servers. My zen cart is 1.5.1 and is installed on zencartsite.com running PHP 5.3.29 (website names are fictitious - like that's not obvious, duh)

    On old webhost I had othersite.com as main domain and zencartsite.com as an addon domain. (all was ok here)
    On new webhost I have zencartsite.com as Main domain and othersitesite.com as addon domain.

    Ceon uri mapping is working properly on zencartsite.com as main domain and I've installed lets encrypt ssl too. All works fine.

    The problem is that the addon domain othersite.com is somehow being redirected to a subfolder of the main domain, so i'm getting:
    https://www.zencartsite.com/othersite.com

    At first I was getting a 500 error. Then I added the following line to .htaccess in public_html

    Code:
    # Don't rewrite addon domains
    RewriteCond %{REQUEST_URI} !^/othersite.com/ [NC]
    and I am able to see the index.html of othersite.com but the url in the browser says: https://www.zencartsite.com/othersite.com

    When I disabled .htaccess in public_html I was able to get othersite.com/index.html so the problem must be with CEON uri mapping (as it's the only thing in .htaccess besides the redirection to https)

    Why is the addon domain being redirected to a subfolder of the main domain?

    Is there any sweet soul who can help? Any suggestions?

    thanks
    Millie

  4. #2094
    Join Date
    Apr 2014
    Location
    London
    Posts
    22
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Hi folks

    I'm having a problem with CEON uri mapping. Can somebody pls help.

    I have just moved servers. My zen cart is 1.5.1 and is installed on zencartsite.com running PHP 5.3.29 (website names are fictitious - like that's not obvious, duh)

    On old webhost I had othersite.com as main domain and zencartsite.com as an addon domain. (all was ok here)
    On new webhost I have zencartsite.com as Main domain and othersite.com as Addon domain.

    Ceon uri mapping is working properly on zencartsite.com as main domain and I've installed lets encrypt ssl too. All works fine.

    The problem is that the addon domain othersite.com is somehow being redirected to a subfolder of the main domain, so i'm getting:
    https://www.zencartsite.com/othersite.com

    At first I was getting a 500 error. Then I added the following line to .htaccess in public_html

    Code:
    # Don't rewrite addon domains
    RewriteCond %{REQUEST_URI} !^/othersite.com/ [NC]
    and I am able to see the index.html of othersite.com but the url in the browser says: https://www.zencartsite.com/othersite.com

    When I disabled .htaccess in public_html I was able to get othersite.com/index.html so the problem must be with CEON uri mapping (as it's the only thing in .htaccess besides the redirection to https)

    Why is the addon domain being redirected to a subfolder of the main domain?

    Is there any sweet soul who can help? Any suggestions?

    thanks
    Millie
    Last edited by Millie63; 11 Apr 2017 at 05:00 PM.

  5. #2095
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Ceon URI Mapping v4.x

    Need more information:
    Would be good to have the old and new htaccess files (obscure admin directory if included): also previously was this plugin used for both domains or just othersite?
    When moving over, how was the determination of what to include in the htaccess determined?
    With regards to file structure, where is othersite in comparison to zencartsite? Both before and now.
    Also regarding folder structure where are both sites as relates to public_html?

    With regards to the statement that the issue is this plugin, it really comes down to server setup (how the outside gets to othersite) and what is contained in the htaccess(es) that guide the visitor(s) to the applicable destination(s).
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #2096
    Join Date
    Apr 2014
    Location
    London
    Posts
    22
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Hi mc12345678

    Thank you so much for answering. I’ll answer your questions:
    Would be good to have the old and new htaccess files (obscure admin directory if included): also previously was this plugin used for both domains or just othersite?
    a) I’m attaching 3 htaccess files. I’ve obscured names.
    1. Old webhost public_html .htaccess (please note that zencartsite.com was first the main domain, then it was changed to addon domain here – it still is an addon domain now)
    Code:
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    
    deny from 173.8.
    
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://zencartsite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://zencartsite.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://zenner.zencartsite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://zenner.zencartsite.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.zenner.zencartsite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.zenner.zencartsite.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://zencartsite.othersite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://zencartsite.othersite.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://ecl.othersite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://ecl.othersite.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://english-lessons-online.othersite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://english-lessons-online.othersite.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://othersite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://othersite.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://othersite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://othersite.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.zencartsite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.zencartsite.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.zencartsite.othersite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.zencartsite.othersite.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.ecl.othersite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.ecl.othersite.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.othersite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.othersite.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.othersite.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.othersite.com/.*$      [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp|flv|swf)$ - [F,NC]
    
    RewriteCond %{HTTP_HOST} ^othersite.com$
    RewriteRule ^news$ "http\:\/\/www\.thirdwebsite\.com\/news\/" [R=301,L]
    ........



    2. Old webhost zencartsite.com .htaccess (zencartsite is addon domain)

    Code:
    suPHP_ConfigPath /home/myusername/public_html/zencartsite.com
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    
    
    
    Options +FollowSymLinks
    RewriteEngine On
    
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.zencartsite.com/$1 [R=301,L]
    
    
    RewriteRule ^zencart.*$ https://www.zencartsite.com/ [R=301,L]
    
    
    AddHandler application/x-httpd-php5 .php
    
    ## BEGIN CEON URI MAPPING REWRITE RULE
    # Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
    RewriteCond %{REQUEST_URI} !^/zencart/ [NC]
    
    # 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} !\.(shtml|3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]
    # Don't rewrite admin directory
    RewriteCond %{REQUEST_URI} !^/myadmin [NC]
    # Don't rewrite editors directory
    RewriteCond %{REQUEST_URI} !^/editors/ [NC]
    # Don't rewrite zodiacimages directory
    RewriteCond %{REQUEST_URI} !^/myimages/ [NC]
    # Don't rewrite cgi-bin directory
    RewriteCond %{REQUEST_URI} !^/cgi-bin/ [NC]
    # Don't rewrite elementstrial directory
    RewriteCond %{REQUEST_URI} !^/elementstrial/ [NC]
    # Don't rewrite logs directory
    RewriteCond %{REQUEST_URI} !^/logs/ [NC]
    # Handle all other URIs using Zen Cart (its index.php)
    RewriteRule .* ./index.php [QSA,L]
    
    ## END CEON URI MAPPING REWRITE RULE
    
    RewriteCond %{HTTP_HOST} ^zencartsite.com[nc]
    RewriteRule ^(.*)$ https://www.zencartsite.com/$1 [L,R=301,nc]
    
    Redirect 301 /contact.shtml https://www.zencartsite.com/index.php?main_page=contact_us
    
    
    DirectoryIndex index.php index.html
    
    #COMMENT | This denys other sites from IFraming your site. It prevents clickjacking.
       # Header always append X-Frame-Options SAMEORIGIN

    The plugin was used only in zencartsite.com It was installed at the old webhost first in zenner.zencartsite.com for testing, then when ready I moved it to zencartsite.com (an addon domain)


    .......


    3. New webhost zencartsite.com (here it is the Main Domain)

    Code:
    #suPHP_ConfigPath /home/myusername/public_html/zencartsite.com
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.zencartsite.com/$1 [R=301,L]
    
    #Options +FollowSymLinks
    #RewriteEngine On
    #RewriteCond %{SERVER_PORT} 80
    #RewriteRule ^(.*)$ https://www.zencartsite.com/$1 [R=301,L]
    
    #RewriteCond %{REQUEST_URI} portal
    #RewriteRule ^(.*)$ https://www.zencartsite.com/portal/$1 [R=301,L]
    
    
    RewriteRule ^zencart.*$ https://www.zencartsite.com/ [R=301,L]
    
    
    
    ## BEGIN CEON URI MAPPING REWRITE RULE
    # Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
    RewriteCond %{REQUEST_URI} !^/zencart/ [NC]
    
    # 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} !\.(shtml|3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]
    # Don't rewrite admin directory
    RewriteCond %{REQUEST_URI} !^/myadmin [NC]
    # Don't rewrite editors directory
    RewriteCond %{REQUEST_URI} !^/editors/ [NC]
    # Don't rewrite myimages directory
    RewriteCond %{REQUEST_URI} !^/myimages/ [NC]
    # Don't rewrite cgi-bin directory
    RewriteCond %{REQUEST_URI} !^/cgi-bin/ [NC]
    # Don't rewrite elementstrial directory
    RewriteCond %{REQUEST_URI} !^/elementstrial/ [NC]
    # Don't rewrite logs directory
    RewriteCond %{REQUEST_URI} !^/logs/ [NC]
    # Don't rewrite addon domains
    RewriteCond %{REQUEST_URI} !^/othersite.com/ [NC]
    # Handle all other URIs using Zen Cart (its index.php)
    RewriteRule .* ./index.php [QSA,L]
    
    ## END CEON URI MAPPING REWRITE RULE
    
    #RewriteCond %{HTTP_HOST} ^zencartsite.com[nc]
    #RewriteRule ^(.*)$ https://www.zencartsite.com/$1 [L,R=301,nc]
    
    Redirect 301 /contact.shtml https://www.zencartsite.com/index.php?main_page=contact_us
    
    
    DirectoryIndex index.php index.html
    
    #COMMENT | This denys other sites from IFraming your site. It prevents clickjacking.
       # Header always append X-Frame-Options SAMEORIGIN
    
    
    AddHandler application/x-httpd-php53 .php .php5 .php4 .php3

    When moving over, how was the determination of what to include in the htaccess determined?
    b) Migration was done by the new webhost (cpanel to cpanel). They just copied everything including the .htaccess from the old webhost zencartsite.com addon domain. Then there was a problem with the configure.php in admin/includes and I couldn’t access admin but they fixed it. I can now access admin zone and also have ssl certificate installed.

    With regards to file structure, where is othersite in comparison to zencartsite? Both before and now.
    c) At old webhost when ceon uri mapping was installed it was:

    Public_html (which includes all the files of othersite.com – there is no zen cart in othersite.com – No 1 .htaccess)
    |
    Zenner folder (subdomain of zencartsite.com - Ceon was first installed here)
    |
    Zencartsite.com folder (addon domain) – originally zencart without ceon was installed in subfolder i.e. zencartsite.com/zencart – after testing CEON in zenner, I transferred all files straight to zencartsite.com i.e. the cart was the domain, no subfolder anymore - No 2 .htaccess)

    Also regarding folder structure where are both sites as relates to public_html?
    At new webhost:

    Public_html (zencartsite.com is here with No 3.htaccess)
    |
    Othersite.com folder

    In new webhost Othersite.com has its own .htaccess but all there is in it is:
    Options +FollowSymlinks
    Options +Indexes
    DirectoryIndex index.html

    With regards to the statement that the issue is this plugin, it really comes down to server setup (how the outside gets to othersite) and what is contained in the htaccess(es) that guide the visitor(s) to the applicable destination(s).
    d) I’ve pasted all the htaccess files I have. When in No 3 .htaccess in public_html I disabled first the ssl redirection only, I got no ssl on zencartsite.com and www.zencartsite.com/othersite.com Then I disabled the cEON part and I was able to get othersite.com/index.html. I asked two of the ‘gurus’ in the webhost support team and they both said that the problem must be coming from the public_html .htaccess


    I hope you can help mc12345678. You’re my last resort at this point!

    Thank you so much for trying

    Millie :)

  7. #2097
    Join Date
    Apr 2014
    Location
    London
    Posts
    22
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    hi mc12345678

    Further to the post above, I need to make it clear that only zencartsite.com has and has ever had a zen cart installed. Othersite.com is a very small old site with about 10 pages of .shtml and 3 pages of .php with contact forms. Othersite.com never had a zen cart. This is why it is so strange that the ceon uri mapping is somehow affecting othersite.com
    Any indication of what I should be looking out for would be most welcome.
    Thank you.
    Millie

  8. #2098
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Ceon URI Mapping v4.x

    Okay, you've got my head spinning... :)

    One thing that sticks out is in your new .htaccess (current one) there is this line:

    Code:
    RewriteRule ^zencart.*$ https://www.zencartsite.com/ [R=301,L]
    What this appears to do is take what may have been your "old" address and convert it to the new zencartsite...

    Put it another way, you've got a lot that is/was going on...

    If I understand your directories and usage correctly, you previously had zencartsite loaded into a subdirectory, that subdirectory was
    referenced by your host using a domain name: so

    Old:
    othersite -> public_html/ <- .htaccess 1
    zencartsite -> public_html/zencart/zencart . com <- .htaccess 2

    New:
    othersite -> public_html/othersite . com <- .htaccess 4 (little info, but there is one)
    zencartsite -> public_html/ <- .htaccess 3

    zencartsite is the only site that is ZC, and othersite has nothing to do with it, correct?

    I could really go into all of the issues that the current .htaccess appears to present; however, if I have a correct understanding of the
    site structure (based on my crude "diagram" above), then this is the basic structure I suggest assuming the .htaccess files in place.

    New .htaccess 3:

    Code:
    #suPHP_ConfigPath /home/myusername/public_html/zencartsite.com
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    
    
    AddHandler application/x-httpd-php53 .php .php5 .php4 .php3
    
    Redirect 301 /contact.shtml https://www.zencartsite.com/index.php?main_page=contact_us  
    
    DirectoryIndex index.php index.html
    
    ## BEGIN CEON URI MAPPING REWRITE RULE
    # Do rewriting ONLY for zencartsite.com
     RewriteCond %{HTTP_HOST} ^(www\.)?zencartsite\.com\.?(:80)?$ [NC]
    # Don't rewrite any URIs that point to the old zencart folder
     RewriteCond %{REQUEST_URI} !^/zencart/ [NC]       #<---- When properly used, the zencart folder could have/should have been rewritten using the plugin and not this rewritecond/rewriterule 
    # Don't rewrite addon domains
     RewriteCond %{REQUEST_URI} !^/othersite.com/ [NC]
     # 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} !\.(shtml|3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC] 
    # Don't rewrite admin directory 
    RewriteCond %{REQUEST_URI} !^/myadmin [NC] 
    # Don't rewrite editors directory 
    RewriteCond %{REQUEST_URI} !^/editors/ [NC] 
    # Don't rewrite myimages directory 
    RewriteCond %{REQUEST_URI} !^/myimages/ [NC] 
    # Don't rewrite cgi-bin directory 
    RewriteCond %{REQUEST_URI} !^/cgi-bin/ [NC] 
    # Don't rewrite elementstrial directory 
    RewriteCond %{REQUEST_URI} !^/elementstrial/ [NC] 
    # Don't rewrite logs directory 
    RewriteCond %{REQUEST_URI} !^/logs/ [NC] 
    # Handle all other URIs using Zen Cart (its index.php) 
    RewriteRule .* ./index.php [QSA,L]  
    ## END CEON URI MAPPING REWRITE RULE
    It seems that this is all that really is needed based on the content that was identified for the new site with zencartsite as the root.

    Now folder discussion? That's a bit of another topic, but... There are two folder structures that could be of concern.

    One, is the "internal" folder structure /home/user/public_html/site1/site2/site3
    The other is what visitors see: web facing folder...

    Based on how things are "working".. Currently othersite is in a subfolder of zencartsite, but it can also be reached directly by
    othersite . com. What happens after that is all on how the software works at othersite . com

    Now I didn't add in/offer any of the other "suggestions" that previously existed or were commented out, because 1) they were commented out
    and 2) they may not have been transferred (old .htaccess 1 included some protections of not copying images... May want to have those
    added in/back or something similar that doesn't require so much effort to maintain)...

    Anyways, the above will provide rewriting for zencartsite and be disabled for othersite. If you need othersite to also use the rewriter
    because it too has gone zen, then would need to do some other things to make it work, but I believe the above will put you back in biz.
    Last edited by mc12345678; 11 Apr 2017 at 09:11 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #2099
    Join Date
    Apr 2014
    Location
    London
    Posts
    22
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    hi mc12345678

    So sorry about the tardiness in replying. This whole thing really did my head in.
    The way cpanel works is that the addon domain (othersite.com) is a subdomain of the main domain i.e. othersite.zencartsite.com I tried with all your suggestions and I just couldn't get it to work properly. I couldn't get othersite.com not to show up as a subdirectory. I kept getting https://www.zencartsite.com/othersite.com Cpanel is quite confusing that way as even subdomains are listed under public_html as separate folders. Then they're redirected and addon domains are supposed to be domains in their own right. I wonder if this is really true. I wonder what the effect on SEO really is. Everyone keeps telling me that this method has no eddect on SEO but I'm not too sure. This is the reason why I wanted the zencartsite.com to be the main domain. The webhost then tried to put othersite.com above public_html to avoid the .htaccess in public_html having any effect on it but this broke everything and both sites went down.
    In the end, as time was running out, I decided to delete everything and change the cpanel to the way it was with the old webhost. i.e. made othersite.com as main domain and zencartsite.com as an addon domain. That seemed to fix the problem and now both sites are up.

    Thank you so much for trying to help mc12345678. I guess my diagram of what is under public_html was not clear enough and that confused issues. If you have any thoughts about the above I would appreciate reading them. I hope this whole messup and your insight might help somebody else in this situation.

    Thanks again
    and Happy Easter/Passover/Eid or simply Spring (or Autumn) as the case may be.

    Best regards
    Millie

  10. #2100
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by Millie63 View Post
    hi mc12345678

    So sorry about the tardiness in replying. This whole thing really did my head in.
    The way cpanel works is that the addon domain (othersite.com) is a subdomain of the main domain i.e. othersite.zencartsite.com I tried with all your suggestions and I just couldn't get it to work properly. I couldn't get othersite.com not to show up as a subdirectory. I kept getting https://www.zencartsite.com/othersite.com Cpanel is quite confusing that way as even subdomains are listed under public_html as separate folders. Then they're redirected and addon domains are supposed to be domains in their own right. I wonder if this is really true. I wonder what the effect on SEO really is. Everyone keeps telling me that this method has no eddect on SEO but I'm not too sure. This is the reason why I wanted the zencartsite.com to be the main domain. The webhost then tried to put othersite.com above public_html to avoid the .htaccess in public_html having any effect on it but this broke everything and both sites went down.
    In the end, as time was running out, I decided to delete everything and change the cpanel to the way it was with the old webhost. i.e. made othersite.com as main domain and zencartsite.com as an addon domain. That seemed to fix the problem and now both sites are up.

    Thank you so much for trying to help mc12345678. I guess my diagram of what is under public_html was not clear enough and that confused issues. If you have any thoughts about the above I would appreciate reading them. I hope this whole messup and your insight might help somebody else in this situation.

    Thanks again
    and Happy Easter/Passover/Eid or simply Spring (or Autumn) as the case may be.

    Best regards
    Millie
    So, there is a way to make it work with the desired setup, but it requires understanding the setup of the system before getting to the .htaccess file... As identified by the cPanel documentation on addon domains, creation of an addon domain will create a subdomain. But understand also, that the presence of the sub-folder does not make it a subdomain... a subdomain is the domain with a prefix.

    Now that said, the .htaccess of the parent directory can have an effect on the child directory, and therefore the .htaccess that is in the parent directory should be written to only affect that directory for the rule(s) that are to only affect that particular area, otherwise they can also cause modifications to the sub-directory. If you plan to continue to try to modify the setup/arrangement, I found this helpful information to make it a little easier to have a go at eventually generating the desired/necessary .htaccess.

    Ideally, if you are able to assign directories (documentRoot) to each the main/other domain, then the following would likely suit best:
    public_html/othersite . com / othersitefiles such as index.html
    public_html/zensite . com / catalogfiles such as index.php
    .htaccess in zensite . com would have the rewrite rules for CEON URI mapping and the one in othersite . com would have its own "small set" of rules. Then basically no .htaccess in the public_html folder or something that is to apply to both sites.

    All that said, I have the following recommendation for your setup if you choose to go the route of your zencartsite as your main site and this othersite (having a different domain name) as an addon domain:

    .htaccess in public_html:
    Code:
    #suPHP_ConfigPath /home/myusername/public_html/zencartsite.com
    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>
    
    
    AddHandler application/x-httpd-php53 .php .php5 .php4 .php3
    
    Redirect 301 /contact.shtml https://www.zencartsite.com/index.php?main_page=contact_us  
    
    DirectoryIndex index.php index.html
    
    RewriteEngine On
    
    # Handle cases where the subdomain is used: othersite.com.zencartsite.com (Might need to just be othersite.zencartsite.com but check your cPanel or with host for what the subdomain is for assignment related to this situation.
    RewriteCond %{HTTP_HOST} ^(www\.)?othersite\.com\.zencartsite\.com$ [NC]
    RewriteRule ^([a-z.]*)$ http://othersite.com/$1 [R=302,L]  #Change to a 301 when all appears functional from a "clean" browser (cookies/cache cleared)
    
    # Handle zencartsite.com/othersite.com to redirect to just othersite.com and maintain anything else that was originally on the uri to include 
    RewriteCond %{HTTP_HOST} ^(www\.)?zencartsite\.com$ [NC]
    RewriteCond %{REQUEST_URI} ^/(www\.)?othersite\.com [NC]
    RewriteRule ^(www\.othersite\.com|othersite\.com)?([a-z./]*)$ http://othersite.com/$2 [R=302,L]  #Change to a 301 when all appears functional from a "clean" browser (cookies/cache cleared)
    
    
    # Force zencartsite to https
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.zencartsite.com/$1 [R=302,L] #Change to a 301 when all appears functional from a "clean" browser (cookies/cache cleared)
    
    ### And finally, if have made it through all of the things above, can actually process the rules to be able to use the associated redirect(s).
    ## BEGIN CEON URI MAPPING REWRITE RULE
    # Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
    RewriteCond %{HTTP_HOST} ^(www\.)?zencartsite\.com\.?(:80)?$ [NC,OR]
    RewriteCond %{HTTP_HOST} ^(www\.)?zencartsite\.com\.?(:443)?$ [NC]
    # 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} !\.(shtml|3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]
    # Don't rewrite admin directory
    RewriteCond %{REQUEST_URI} !^/myadmin [NC]
    # Don't rewrite editors directory
    RewriteCond %{REQUEST_URI} !^/editors/ [NC]
    # Don't rewrite myimages directory
    RewriteCond %{REQUEST_URI} !^/myimages/ [NC]
    # Don't rewrite cgi-bin directory
    RewriteCond %{REQUEST_URI} !^/cgi-bin/ [NC]
    # Don't rewrite elementstrial directory
    RewriteCond %{REQUEST_URI} !^/elementstrial/ [NC]
    # Don't rewrite logs directory
    RewriteCond %{REQUEST_URI} !^/logs/ [NC]
    # Don't rewrite addon domains
    # RewriteCond %{REQUEST_URI} !^/othersite\.com [NC]
    # Handle all other URIs using Zen Cart (its index.php)
    RewriteRule (.*) index.php [QSA,L]
    
    ## END CEON URI MAPPING REWRITE RULE

    Then, in your othersite directory the following .htaccess:
    Code:
    Options +FollowSymlinks
    Options +Indexes
    DirectoryIndex index.html
    
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} !^othersite\.com$ [NC]
    RewriteRule ^(.*)$ http://othersite.com/$1 [R=302,L] #Change to a 301 when all appears functional from a "clean" browser (cookies/cache cleared)
    There are potentially other "beneficial" items to have in your .htaccess; however, I wanted to provide the "functionality" that you had with what seems to be the functionality expected, desired, or needed.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v139d Ceon uri mapping, how to generate uri mapping for bulk bulk-imported products?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 8 Jan 2013, 06:52 AM
  2. CEON URI Mapping
    By jmkent in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 22 Nov 2012, 04:28 PM
  3. Ceon URI Mapping (SEO)
    By conor in forum All Other Contributions/Addons
    Replies: 2906
    Last Post: 9 Sep 2011, 08:31 AM
  4. Ceon URI Mapping v4
    By conor in forum All Other Contributions/Addons
    Replies: 110
    Last Post: 14 Aug 2011, 02:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR