hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : [Help] htaccess --> lighttpd
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

[Help] htaccess --> lighttpd

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 11-03-2011, 11:19 PM
kohkindachi kohkindachi is offline
Junior Guru
 
Join Date: Apr 2006
Posts: 175
*

[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

Reply With Quote


Sponsored Links
  #2  
Old 11-05-2011, 02:33 AM
Ilya74 Ilya74 is offline
Web Hosting Guru
 
Join Date: Apr 2008
Posts: 303
There is another way to rewrites.
Try:
Code:
url.rewrite-once = ( "^(.*)/(.*)/" => "index.php?file=$2" )

__________________
Develvo Networks - Dedicated and virtual servers
Reliable and affordable solutions for your websites and projects
24x7 Support, Managed Services, Discounts on pre-payments
Contact us today - sales@develvo.net

Reply With Quote
  #3  
Old 11-05-2011, 02:53 AM
cptechie cptechie is offline
Web Hosting Evangelist
 
Join Date: Jan 2011
Posts: 451
Hello,

Lighttpd won't recognize the file .htaccess. You need to use special rewrite rules for lighttpd and include it in the configuration file.

__________________
" Your work is to discover your work and then with all your heart to give yourself to it. "

That's the mark of a true professional !

Reply With Quote
Sponsored Links
  #4  
Old 11-05-2011, 04:56 AM
Ilya74 Ilya74 is offline
Web Hosting Guru
 
Join Date: Apr 2008
Posts: 303
Yes, it should be in config file, but rule which I gave should work.

__________________
Develvo Networks - Dedicated and virtual servers
Reliable and affordable solutions for your websites and projects
24x7 Support, Managed Services, Discounts on pre-payments
Contact us today - sales@develvo.net

Reply With Quote
  #5  
Old 11-05-2011, 10:56 PM
kohkindachi kohkindachi is offline
Junior Guru
 
Join Date: Apr 2006
Posts: 175
Quote:
Originally Posted by Ilya74 View Post
There is another way to rewrites.
Try:
Code:
url.rewrite-once = ( "^(.*)/(.*)/" => "index.php?file=$2" )
Thanks alot. But what about
RewriteBase /folder1

I want it for /folder1/ only.
Thanks bro

Reply With Quote
  #6  
Old 11-10-2011, 09:48 PM
kohkindachi kohkindachi is offline
Junior Guru
 
Join Date: Apr 2006
Posts: 175
no help at all?

Reply With Quote
  #7  
Old 11-10-2011, 10:03 PM
8088 8088 is offline
Web Hosting Master
 
Join Date: Nov 2010
Posts: 616
It's all in the manual.

Reply With Quote
  #8  
Old 12-28-2011, 03:41 AM
mattmackman mattmackman is offline
Junior Guru Wannabe
 
Join Date: Feb 2010
Posts: 86
## for all URLs in /instadir/ that are not index.php, dmoz.css, admin or img, do ...
url.rewrite-once = ( "^/instadir/(?!index\.php|dmoz\.css|admin|img).*" => "$0",
"^/instadir/([^?]*)(?:\?(.*))?" => "/instadir/index.php?area=browse&cat=$1&$2")

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Paying] .htaccess >translate> lighttpd BTL Solutions Hosting Security and Technology 1 10-28-2011 01:08 PM
Need some help converting some .htaccess rules to lighttpd jon-f Hosting Security and Technology 4 10-02-2010 12:52 PM
Convert *htaccess* to *lighttpd htaccess* rules ?? xSinax Hosting Security and Technology 2 09-08-2010 06:17 AM
lighttpd htaccess Markovic Hosting Security and Technology 7 09-08-2009 07:32 AM
Lighttpd and apache-style htaccess Bier Hosting Security and Technology 6 08-25-2008 08:20 PM

Related posts from TheWhir.com
Title Type Date Posted
Netcraft Continues to See a Drop in Responses for July 2012 Web Survey Web Hosting News 2012-07-03 14:35:26
Slow Read DOS Attack Created by Software Engineer Shows HTTP Server Vulnerability Web Hosting News 2012-01-06 20:55:18
Go Daddy Helping Customers Repair Compromised Sites Web Hosting News 2011-09-16 14:35:03
Q&A: Jon Schwenn of Mac Mini Vault on His Apple TV Web Server Experiment Web Hosting News 2011-05-31 14:26:29


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?