pixelpadre Posted March 1, 2014 Report Share Posted March 1, 2014 Well it appears that MDD is using Litespeed Techologies for their webserver software. Thats fine, except there are some problems such as mod rewrite not working on non apache servers. Is there a work around for this? Quote Link to comment Share on other sites More sharing options...
cziv Posted March 2, 2014 Report Share Posted March 2, 2014 I recently moved here 10 websites from HostGator and i didn't have a single problem with mod rewrite. Actually i changed nothing in my .htaccess. Worked as soon as i uploaded everything here. Quote Link to comment Share on other sites More sharing options...
pixelpadre Posted March 2, 2014 Author Report Share Posted March 2, 2014 This is my 404 error page that I get in Zencart 404 Not FoundThe resource requested could not be found on this server! Powered By LiteSpeed Web ServerLiteSpeed Technologies is not responsible for administration and contents of this web site! This htaccess:Options +FollowSymLinksRewriteEngine on#RewriteBase /################################################################################ Start Ultimate SEO URLs################################################################################ Handles the new URL formatsRewriteRule ^(.*)-c-([0-9_]+)/(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$4&cPath=$2&%{QUERY_STRING} [L]RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$4&cPath=$2&%{QUERY_STRING} [L]RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]# Original (unchanged) URL formatsRewriteRule ^(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]RewriteRule ^(.*)-m-([0-9]+)(.*)$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]RewriteRule ^(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]RewriteRule ^(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]RewriteRule ^(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]RewriteRule ^(.*)-ezp-([0-9]+)(.*)$ index\.php?main_page=page&id=$2&%{QUERY_STRING} [L]RewriteRule ^(.*)-c-([0-9_]+)(.*)$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]# All other pages# Don't rewrite real files or directoriesRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d Quote Link to comment Share on other sites More sharing options...
cziv Posted March 2, 2014 Report Share Posted March 2, 2014 You mean it was working before and stopped working with Litespeed ? I quote from Litespeed: LiteSpeed Web Server's rewrite engine is fully compatible with Apache mod_rewrite so there is no need to change rewrite directives when you switch to LiteSpeed. The rewrite engine is highly optimized and increases speed over Apache's rewrite engine, especially for rewrite directives in a .htaccess file. Quote Link to comment Share on other sites More sharing options...
pixelpadre Posted March 2, 2014 Author Report Share Posted March 2, 2014 You neglected to include this in your out of context quote. Description: Specifies a list of rewrite rules at virtual host or context level. A rewrite rule is comprised of one RewriteRule directive and optionally preceded by multiple RewriteCond directives.Each directive should take only one line.RewriteCond and RewriteRule follow Apache's rewrite directive syntax. Just copy and paste rewrite directives from your Apache configuration files.There are minor differences between LiteSpeed and Apache mod_rewrite implementation:%\{LA-U:variable\} and %\{LA-F:variable\} are ignored by the LiteSpeed rewrite enginetwo new server variables are added in the LiteSpeed rewrite engine: %\{CURRENT_URI\} represents the current URI processed by the rewrite engine and %\{SCRIPT_NAME\} has the same meaning as the corresponding CGI environment variable. Quote Link to comment Share on other sites More sharing options...
Leah2 Posted March 4, 2014 Report Share Posted March 4, 2014 You neglected to include this in your out of context quote. WOW - kinda harsh for a Good Samaritan trying to help you. Not that you are bad or wrong, I think that often "we don't realize" how different the perception of text is to voice... Though kudos for referencing the code that solved your problem. Glad it worked for you. Best Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.