Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    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.

  • #3
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts

  • #4
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey guys, I'm posting this for an exact solution.
    mod_rewrite is enabled, now i need help you getting the correct format
    Thx

  • #5
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •