LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > Error 404 on .htaccess Rewrite?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-12-2007, 06:29 AM
IRCCo Jeff IRCCo Jeff is offline
Member
 
Join Date: Nov 2007
Posts: 15
Default Error 404 on .htaccess Rewrite?

As mentioned in other threads we just moved from Apache to the latest lsws and have since had a customer come forwarding saying .htaccess does not work whatsoever. Password protected areas are completely naked (he removed them for now) and Rewrites are not working whatsoever. Here is a copy of his .htaccess for rewrite:

# cat .htaccess
#deny from all
RewriteEngine On
Rewriterule ^index.html tmpl.php
RewriteRule ^article_([^_]*)-([^_]*)\.html$ /index.php?action=view&id=$1&page=$2 [L]
RewriteRule ^content_([^_]*)\.html$ /index.php?action=view_content&id=$1 [L]
RewriteRule ^listing_([^_]*)-([^_]*)\.html$ /index.php?action=list_articles&id=$1&page=$2 [L]
RewriteRule ^art\,([^_]*)_([^_]*)_([^_]*)\.html$ /index.php?action=view&id=$1&page=$2&seo_url=$3 [L]
RewriteRule ^do-([^-]*)-([^-]*)-([^-]*)\.html([^/]*)$ /index.php?action=$1&$2=$3$4 [L]
RewriteRule ^ads\,([^-]*)-([^-]*)\.html$ /?action=list_ads&kategorija=$1&page=$2 [L]
RewriteRule ^postAD\.html$ /?action=post_ad [L]
RewriteRule ^skelbimai\.html$ /?action=ads [L]
RewriteRule ^forumas\.html$ /index.php?action=fList&cid=0 [L]
RewriteRule ^rss-listing_([^_]*)\.xml$ /inc/rss_generator.php?id=$1 [L]

The URL he is trying to access via rewrite is http://domaingoeshere/art,240_1_kiec...e-londona.html

I have tried all of the various settings in the admin control panel pertaining to .htaccess and it's not working!

Can anyone please lend some assistance?
Reply With Quote
  #2  
Old 11-12-2007, 06:30 AM
IRCCo Jeff IRCCo Jeff is offline
Member
 
Join Date: Nov 2007
Posts: 15
Code:
http://domaingoeshere/art,240_1_kieciausias-metu-prietaisas-jau-pasieke-londona.html
Non-truncated version of the URL.
Reply With Quote
  #3  
Old 11-12-2007, 07:04 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Please download the latest 3.3 release build and give it try. Just change the version number in the download link.
Reply With Quote
  #4  
Old 11-12-2007, 07:07 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
If you use FreeBSD, the 3.3 build may not be the latest, I will let you know when it is ready.
Reply With Quote
  #5  
Old 11-12-2007, 08:32 AM
IRCCo Jeff IRCCo Jeff is offline
Member
 
Join Date: Nov 2007
Posts: 15
Quote:
Originally Posted by mistwang View Post
If you use FreeBSD, the 3.3 build may not be the latest, I will let you know when it is ready.
This is not on our FreeBSD server, that one I cannot even get to install PHP correctly (have a different thread open on that). It is CentOS Linux and is working perfectly otherwise:

Linux servernamehere 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 26 14:30:58 EDT 2007 i686

This is pretty critical to us as this person in question is a large and significant customer of ours! We are a company on the path to fully adopt lsws as our httpd for every server once all the bugs are worked out and to push this product to our dedicated server customer base.
Reply With Quote
  #6  
Old 11-12-2007, 08:44 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Just download the latest 3.3 package, a few control panel compatibility issue has been fixed. Give it try, if the problem persist, we will investigate more.
Reply With Quote
  #7  
Old 11-12-2007, 09:23 AM
IRCCo Jeff IRCCo Jeff is offline
Member
 
Join Date: Nov 2007
Posts: 15
Where I find 3.3? The web site's download area shows 3.2.4 as latest?
Reply With Quote
  #8  
Old 11-12-2007, 09:47 AM
IRCCo Jeff IRCCo Jeff is offline
Member
 
Join Date: Nov 2007
Posts: 15
Where I find 3.3? The web site's download area shows 3.2.4 as latest?
Reply With Quote
  #9  
Old 11-12-2007, 11:50 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Just change the version number in the download link from 3.2.4 to 3.3.
Reply With Quote
  #10  
Old 11-12-2007, 12:37 PM
IRCCo Jeff IRCCo Jeff is offline
Member
 
Join Date: Nov 2007
Posts: 15
I installed 3.3. The .htaccess began to work, but PHP broke completely (Error 503 on all requests). Any idea where to begin to fix this?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:30 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.