Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-04-2011, 04:22 AM   PM User | #1
kohkindachi
New to the CF scene

 
Join Date: Oct 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
kohkindachi is an unknown quantity at this point
Exclamation [Help] htaccess --> lighttpd

Hey guys, (1) how do i check if mod_rewrite is enabled/installed in my lighttpd server? If not, how do i enable it?

(2) How do I add this htaccess code to lighttpd?

Code:
RewriteBase /alt
RewriteRule ^(.*)/(.*)/ index.php?file=$2
Thanks alot
kohkindachi is offline   Reply With Quote
Old 11-04-2011, 03:58 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
This hasn't a thing to do with PHP.
Simply use ifmodule:
Code:
<IfModule mod_rewrite.c>
    RewriteEngine on
    ...
</IfModule>
As for enabling it, assuming that this lighttpd simply uses apache then you'd modify the httpd.conf file to enable the mod_rewrite.
Fou-Lu is offline   Reply With Quote
Old 11-04-2011, 07:26 PM   PM User | #3
MattF
Senior Coder

 
Join Date: Jul 2009
Location: South Yorkshire, England
Posts: 2,322
Thanks: 6
Thanked 304 Times in 303 Posts
MattF will become famous soon enoughMattF will become famous soon enough
http://redmine.lighttpd.net/wiki/lig...modulesDetails
http://redmine.lighttpd.net/wiki/lig...ocs:ModRewrite
MattF is offline   Reply With Quote
Old 11-05-2011, 01:15 PM   PM User | #4
kohkindachi
New to the CF scene

 
Join Date: Oct 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
kohkindachi is an unknown quantity at this point
Hey guys, I'm posting this for an exact solution.
mod_rewrite is enabled, now i need help you getting the correct format
Thx
kohkindachi is offline   Reply With Quote
Old 11-05-2011, 03:07 PM   PM User | #5
MattF
Senior Coder

 
Join Date: Jul 2009
Location: South Yorkshire, England
Posts: 2,322
Thanks: 6
Thanked 304 Times in 303 Posts
MattF will become famous soon enoughMattF will become famous soon enough
Quote:
Originally Posted by kohkindachi View Post
Hey guys, I'm posting this for an exact solution.
Work it out the same as everyone else has to. You have all of the information necessary in those links above. This is a coding and administration help and advice forum, not a free coding/administration service forum.
MattF is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 +1. The time now is 02:17 AM.


Advertisement
Log in to turn off these ads.