Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2009
    Posts
    93
    Plugin Contributions
    0

    Default .htaccess settings for URI Mapping on new custom dedicated server?

    I'm currently using Dedicated server to test my zen cart website.
    The temporary url i have been assigned is http://serverip/~username/.

    I can access my website but if i click on any category i get server error. The following .htaccess file is for http://www.mydomain.com but here in this case a new folder ~username is compulsory to access the pages.


    RewriteEngine On

    # 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]

    Please tell me what should be added to access the pages on dedicated server?

  2. #2
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: .htaccess settings for URI Mapping on server

    I don't know if it will work anyway with an ip address as opposed to using a domain name, but you are missing an important line when using server-based pathways. Because the root is the server and not the domain name you need to have this as your starting point:

    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /~username/

    Vger

  3. #3
    Join Date
    Oct 2009
    Posts
    93
    Plugin Contributions
    0

    Default Re: .htaccess settings for URI Mapping on server

    I have updated that but still getting the following error:

    404 Not Found
    The server can not find the requested page:

  4. #4
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: .htaccess settings for URI Mapping on server

    Well, has your dedicated server got the mod_rewrite.so module enabled in php.ini?

    Vger

  5. #5
    Join Date
    Oct 2009
    Posts
    93
    Plugin Contributions
    0

    Default Re: .htaccess settings for URI Mapping on server

    Yes they are updated but I have come to know that this URI mapping will not work in such a way.

    Thanks for your help.

 

 

Similar Threads

  1. v139h Ceon URI Mapping - Moved to New Host Server
    By srlaird in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 11 Aug 2014, 06:40 PM
  2. v139h Ceon URI Mapping (SEO) with Custom Pages
    By p-plater in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 31 Mar 2014, 04:42 PM
  3. 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
  4. Site is very slow on dedicated hosting - Ceon URI Mapping
    By fawad123 in forum All Other Contributions/Addons
    Replies: 68
    Last Post: 15 Jun 2010, 09:05 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