Page 185 of 245 FirstFirst ... 85135175183184185186187195235 ... LastLast
Results 1,841 to 1,850 of 2445
  1. #1841
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ceon URI Mapping v4.x

    Something similiar to the following should work:

    Code:
    ## BEGIN host specific settings
    
    # Use PHP53 as default
    AddHandler application/x-httpd-php53 .php
    <IfModule mod_suphp.c>
        suPHP_ConfigPath /opt/php53/lib
    </IfModule>
    
    ## END host specific settings
    
    ## START Access control
    
    # Block access from these IP Addresses
    deny from 144.76.95.231
    
    ## END Access control
    
    ## BEGIN the usual suspects
    
    # Enable mod_rewrite
    RewriteEngine On
    
    # Redirect all users to access the site WITH the 'www.' prefix
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteCond %{HTTP_HOST} !\.([a-z-]+\.[a-z]{2,6})$ [NC]
    RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    
    ## END the usual suspects
    
    ## BEGIN CEON URI MAPPING REWRITE RULE (folder "test")
    
    # ONLY rewrite URIs beginning with /test/
    RewriteCond %{REQUEST_URI} ^/test/ [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} !\.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]
    # Don't rewrite admin directory
    RewriteCond %{REQUEST_URI} !^/test/admin [NC]
    # Don't rewrite editors directory
    RewriteCond %{REQUEST_URI} !^/test/editors/ [NC]
    # Don't rewrite !!storage directory
    RewriteCond %{REQUEST_URI} !^/test/logs/ [NC]
    # Handle all other URIs using Zen Cart (its index.php)
    RewriteRule .* test/index.php [QSA,L]
    
    ## END CEON URI MAPPING REWRITE RULE (folder "test")
    
    ## BEGIN CEON URI MAPPING REWRITE RULE (site root)
    
    # Don't rewrite the test folder
    RewriteCond %{REQUEST_URI} !^/test/ [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} !\.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]
    # Don't rewrite admin directory
    RewriteCond %{REQUEST_URI} !^/admin [NC]
    # Don't rewrite editors directory
    RewriteCond %{REQUEST_URI} !^/editors/ [NC]
    # Don't rewrite darkangel directory
    RewriteCond %{REQUEST_URI} !^/private/ [NC]
    # Don't rewrite cgi-bin directory
    RewriteCond %{REQUEST_URI} !^/cgi-bin/ [NC]
    # Handle all other URIs using Zen Cart (its index.php)
    RewriteRule .* index.php [QSA,L]
    
    ## END CEON URI MAPPING REWRITE RULE (site root)
    
    
    ## EXPIRES CACHING ##
    
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType application/pdf "access plus 1 month"
    ExpiresByType text/x-javascript "access plus 1 month"
    ExpiresByType application/x-shockwave-flash "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresDefault "access plus 2 days"
    </IfModule>
    
    ## EXPIRES CACHING ##
    NOTE 1: mod_rewrite rules should always go from the most specific at the top to the most general at the bottom. They are matched in order from top to bottom (and L does not always mean last in a .htaccess file).

    NOTE 2: The above assumes the "live" store is installed at "/public/" (URL of /) and the "test" store is installed at "/public/test/" (URL of /test/).

    NOTE 3: If multiple domain names point to the same web root, one may wish to use slightly different code for the FQDN redirect.
    Last edited by lhungil; 14 Apr 2015 at 04:51 AM.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  2. #1842
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Thanks, I will try that once I get all the owners stuff situated for transferring, right now I am answering more questions fromt eh owner than working on the site...LOL

  3. #1843
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by DarkAngel View Post
    Thanks, I will try that once I get all the owners stuff situated for transferring, right now I am answering more questions fromt eh owner than working on the site...LOL
    Honestly if Conor were alive, he'd tell you that you need to setup your test site using a sub-domain and not just a simple folder off the root.. It will look like this:

    Live site: http://yourdomain.com
    Test Site: http://testsite.yourdomain.com

    Ask your host for help in setting up a subdomain to point at your test site's folder if you don't know how to do this -- or Google it. This way your test site will behave like a top level domain and your production site's .htaccess SHOULD work on your test site too.. It will make code migrations MUCH easier too..
    Last edited by DivaVocals; 14 Apr 2015 at 06:32 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  4. #1844
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Thank you Diva, you always point out what my feeble mind tends to block out.

    I shall do that...I am so mind boggled that i never thought of that.

  5. #1845
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,586
    Plugin Contributions
    30

    Default Re: Ceon URI Mapping v4.x

    Honestly if Conor were alive, he'd tell you that you need to setup your test site using a sub-domain and not just a simple folder off the root.. It will look like this:

    Live site: http://yourdomain.com
    Test Site: http://testsite.yourdomain.com
    I would agree.
    Just to add my meagre experience, for many moons I was developing Zen Cart locally using an alias in the Apache config, so I would access my sites as
    192.168.1.100/mytestsite.
    It was only when I starting using the URI mapping that I was forced to do it "properly" and use virtual hosts and a redirect in my windows host files to use
    www.mysite.local to access the local site. Otherwise the URI mapping was problematical.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  6. #1846
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by DivaVocals View Post
    *nods* Still sometimes issues though if the subdomain's public_root is nested inside the domain's public_root... Can be avoided by making sure the subdomain is not nested inside the public_root (cPanel hosting allows this, some bargain basement hosting does not).

    Only real catch with using a subdomain is testing with SSL enabled. But one can always turn it off SSL during testing and turn it back on when ready to go live.

    Quote Originally Posted by torvista View Post
    I would agree.
    ...
    It was only when I starting using the URI mapping that I was forced to do it "properly" and use virtual hosts and a redirect in my windows host files to use www.mysite.local to access the local site. Otherwise the URI mapping was problematical.
    *nods* This is how I do the majority of my testing (local AMPP configurations - no nested public_root folders and certificates signed by a locally trusted authority). Allows testing with SSL enabled - without paying for a certificate or a hosting provider to install a certificate.


    So where is this bandwagon headed? Might I suggest we meander into a club with live music?
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  7. #1847
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by lhungil View Post
    *nods* Still sometimes issues though if the subdomain's public_root is nested inside the domain's public_root... Can be avoided by making sure the subdomain is not nested inside the public_root (cPanel hosting allows this, some bargain basement hosting does not).
    True.. but I've managed to work through/around this...

    Quote Originally Posted by lhungil View Post
    Only real catch with using a subdomain is testing with SSL enabled. But one can always turn it off SSL during testing and turn it back on when ready to go live.
    I've managed to get away with doing things this way.. **giggle** I know I know.. I can HEAR you smacking my hand from here..


    Quote Originally Posted by lhungil View Post
    So where is this bandwagon headed? Might I suggest we meander into a club with live music?
    Did someone say music AND cocktails?????
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  8. #1848
    Join Date
    Apr 2015
    Location
    brooklyn
    Posts
    8
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Hello

    I use a shared ssl certificate and my https server cataloge is //***.***.com/~***
    It doesnt work and the installation checker says I cant have any subdirectory in the path in the configure.php

    my host appends the /~ for my account.



    Thanks Alot

  9. #1849
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    109
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Hi,
    Would you be able to post the contents of your configuration file.
    It might help in trying to figure out what the problem may be.
    Thanks


    Quote Originally Posted by merica View Post
    Hello

    I use a shared ssl certificate and my https server cataloge is //***.***.com/~***
    It doesnt work and the installation checker says I cant have any subdirectory in the path in the configure.php

    my host appends the /~ for my account.



    Thanks Alot

  10. #1850
    Join Date
    Apr 2015
    Posts
    6
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by merica View Post
    Hello

    I use a shared ssl certificate and my https server cataloge is //***.***.com/~***
    It doesnt work and the installation checker says I cant have any subdirectory in the path in the configure.php
    my host appends the /~ for my account.
    Thanks Alot
    Why not just buy an SSL Certificate? https://www.instantssl.com/free-ssl-...45022b5bc670fe

 

 

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