Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Sep 2010
    Posts
    3
    Plugin Contributions
    0

    help question .htaccess url mask not working

    I'm plain stumped, I cant seem to get my .htaccess file to mask the url maps for my cart install.

    I dont want my customers to see any url map other then the top level domain, ie: http://mydomain.com

    a section of my code looks like

    Code:
    RewriteEngine On
    #
    ## Deny access to extension xml files
    <Files ~ "\.xml$">
    Order allow,deny
    Deny from all
    Satisfy all
    </Files>
    ## End of deny access to extension xml files
    RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
    # Block out any script trying to base64_encode crap to send via URL
    RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
    # Block out any script that includes a <script> tag in URL
    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
    # Block out any script trying to set a PHP GLOBALS variable via URL
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    # Block out any script trying to modify a _REQUEST variable via URL
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    # Send all blocked request to homepage with 403 Forbidden error!
    RewriteRule ^(.*)$ index.php [F,L]
    #
    #URL MASK
    RewriteCond %{REQUEST_URI} ^/cart/($|/)
    #
    RewriteRule ^.*$ http://mydomain.com [L]
    I am soooo stumped, I don't want to install seo modules to get this working.

    Anyone else know of a win?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: .htaccess url mask not working

    Quote Originally Posted by support View Post
    I'm plain stumped, I cant seem to get my .htaccess file to mask the url maps for my cart install.

    I dont want my customers to see any url map other then the top level domain, ie: http://mydomain.com
    Sounds like you're trying to hide your site in a frame. Bad idea.

    What exactly are you trying to accomplish by hiding the URLs from your customers?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 13
    Last Post: 26 Jun 2012, 10:27 PM
  2. Admin not working after adding custom mod_rewrite to .htaccess
    By quit in forum Installing on a Linux/Unix Server
    Replies: 11
    Last Post: 29 May 2011, 04:50 AM
  3. .htaccess not working???
    By imfsub12 in forum General Questions
    Replies: 3
    Last Post: 28 May 2009, 08:36 PM
  4. 301 redirect in htaccess not working
    By FrenchFrog in forum General Questions
    Replies: 10
    Last Post: 24 Aug 2007, 12:36 AM

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