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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > .htaccess for LiteSpeed

Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2012, 06:14 AM
johansson johansson is offline
New Member
 
Join Date: May 2012
Posts: 2
Default .htaccess for LiteSpeed

Good afternoon,
I have a little problem with the .htaccess for LiteSpeed.
I have the rewirte rules for an apache web server and I tried it for LiteSpeed but it doesn't work.
May be you can help me to change the rewrite rules.
This is for Apache and hope someone can change it so it works for LiteSpeed.
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^/about$ /about.php [L]
RewriteRule ^/(.+)$ /index.php?id=$1 [QSA,L]
Reply With Quote
  #2  
Old 05-07-2012, 11:34 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
to troubleshoot rewrite in general, enable rewritelogging (add 'RewriteLogLevel 9' in vhost httpd.conf and restart lsws to make it effective) to check [REWRITE] entries in error_log.

for rules .htaccess, leading '/' in ^/about$ and ^/(.+)$ should be removed as follows:

Quote:
RewriteRule ^about$ /about.php [L]
RewriteRule ^(.+)$ /index.php?id=$1 [QSA,L]
Reply With Quote
  #3  
Old 05-08-2012, 07:31 AM
johansson johansson is offline
New Member
 
Join Date: May 2012
Posts: 2
Thanks for the answer.
But with that .htaccess it doesn't work too.

Today I saw that there was a error_log.
Code:
[08-May-2012 14:11:32 UTC] PHP Fatal error:  Call to undefined method mysqli_stmt::get_result() in /home/spastetk/public_html/inc/paste.class.php on line 53
[08-May-2012 14:11:32 UTC] PHP Fatal error:  Call to undefined method mysqli_stmt::get_result() in /home/spastetk/public_html/inc/paste.class.php on line 53
And here you can finde the "paste.class.php" :
https://ezcrypt.it/pY4n#dweUKep09OugeH3b8FALawm7

I tried to use the same script like ezcypt for my website only the url rewrite with LiteSpeed won't work.
Reply With Quote
  #4  
Old 05-08-2012, 11:45 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
Quote:
Originally Posted by johansson View Post
...
Code:
[08-May-2012 14:11:32 UTC] PHP Fatal error:  Call to undefined method mysqli_stmt::get_result() in /home/spastetk/public_html/inc/paste.class.php on line 53
[08-May-2012 14:11:32 UTC] PHP Fatal error:  Call to undefined method mysqli_stmt::get_result() in /home/spastetk/public_html/inc/paste.class.php on line 53
...
Did you build matching php in LSWS? Seems mysqli isn't built in lsphp5.
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 03:36 PM.



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