Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2004
    Posts
    762
    Plugin Contributions
    0

    Default .htaccess problems vs ultimate SEO

    This is directly related to the .htaccess file, and I need help figuring out what is going on.

    Here's the rundown. We are porting our site to a newer server. We are running the Ultimate SEO module.

    When we try to go to a URL which has been rewritten, we get the following error:

    Code:
    404 Not Found
    
    The requested URL /store/index.php was not found on this server.
    
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    If we rename the .htaccess file so that the url is not rewritten, then it works fine.

    Here is our .htaccess file content:

    Code:
    ##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:
    
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /store/
    
    # From Ultimate SEO URLs
    RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
    
    # For Open Operations Info Manager
    RewriteRule ^(.*)-i-([0-9]+).html$ index\.php?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L]
    
    # For dreamscape's News & Articles Manager
    RewriteRule ^news/?$ index\.php?main_page=news&%{QUERY_STRING} [L]
    RewriteRule ^news/rss.xml$ index\.php?main_page=news_rss&%{QUERY_STRING} [L]
    RewriteRule ^news/archive/?$ index\.php?main_page=news_archive&%{QUERY_STRING} [L]
    RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html$ index\.php?main_page=news&date=$1-$2-$3&%{QUERY_STRING} [L]
    RewriteRule ^news/archive/([0-9]{4})-([0-9]{2}).html$ index\.php?main_page=news_archive&date=$1-$2&%{QUERY_STRING} [L]
    RewriteRule ^news/(.*)-a-([0-9]+)-comments.html$ index\.php?main_page=news_comments&article_id=$2&%{QUERY_STRING} [L]
    RewriteRule ^news/(.*)-a-([0-9]+).html$ index\.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]
    
    # All other pages
    # Don't rewrite real files or directories
    RewriteCond %{REQUEST_FILENAME} !-f [NC] 
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]

  2. #2
    Join Date
    Aug 2004
    Posts
    762
    Plugin Contributions
    0

    Default Re: .htaccess problems

    BTW....I am not 100% sure that mod_rewrite is compiled into the server, even though it's a newer upgraded server. I am currently working with the network guys to make sure that isn't the issue.

 

 

Similar Threads

  1. v139h Ultimate SEO Upload problems
    By christospur in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 20 Feb 2013, 12:01 PM
  2. v150 Ultimate SEO .htaccess problem and broken Admin interface
    By erint29 in forum All Other Contributions/Addons
    Replies: 33
    Last Post: 27 Aug 2012, 06:56 PM
  3. Ultimate SEO Module + htaccess 301 redirect issue
    By justinanderson007 in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 31 Aug 2010, 04:12 PM
  4. Ultimate SEO URLs - Can it be run on a server with no .htaccess?
    By z3n in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 29 Jan 2009, 05:54 PM
  5. Ultimate SEO and .htaccess
    By d1rage5 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 31 Jul 2008, 06:36 AM

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