LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 02-19-2010, 05:46 AM   #1
bagfull
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
Mod Rewrite Rule help needed!


Hi,

I want to convert this code from apache to lighttpd rewrite rules. Please help me someone for this urgent help!

Code:
Options +FollowSymlinks
RewriteEngine on
ErrorDocument 404 /
RewriteBase /
RewriteRule ^([^.]+)\.html$ $1.php [L] 

RewriteRule ^dl/(.*)$ download.php?id=$1&t=$2 [NC]
RewriteRule ^generate_link /modules/generate_link.php [NC]
RewriteRule ^rs/([^/]+)/([^/]+) /modules/rsdownload.php?rsid=$1&rsfile=$2 [NC]
RewriteRule ^mu/([^/]+) /modules/mudownload.php?muid=$1 [NC]
RewriteRule ^hf/([^/]+)/([^/]+)/([^/]+) /modules/hfdownload.php?hfid1=$1&hfid2=$2&hfname=$3 [NC]
RewriteRule ^yt/([^/]+) /modules/ytdownload.php?vidid=$1&idm=1 [NC]
RewriteRule ^nl/([^/]+) /modules/nldownload.php?nlid=$1 [NC]
RewriteRule ^es/([^/]+) /modules/esdownload.php?esid=$1 [NC]
RewriteRule ^ul/([^/]+) /modules/uldownload.php?ulid=$1 [NC]
RewriteRule ^df/([^/]+) /modules/dfdownload.php?dfid=$1 [NC]
RewriteRule ^ms/([^/]+) /modules/msdownload.php?msid=$1 [NC]
RewriteRule ^mv/([^/]+) /modules/mvdownload.php?mvid=$1&idm=1 [NC]
RewriteRule ^mp/([^/]+) /modules/mpdownload.php?mpid=$1&idm=1 [NC]
RewriteRule ^idm/rs/([^/]+)/([^/]+) /modules/rsdownload.php?rsid=$1&rsfile=$2&idm=1 [NC]
RewriteRule ^idm/mu/([^/]+) /modules/mudownload.php?muid=$1&idm=1 [NC]
RewriteRule ^idm/hf/([^/]+)/([^/]+)/([^/]+) /modules/hfdownload.php?hfid1=$1&hfid2=$2&hfname=$3&idm=1 [NC]
RewriteRule ^idm/yt/([^/]+) /modules/ytdownload.php?vidid=$1&idm=1 [NC]
RewriteRule ^idm/nl/([^/]+) /modules/nldownload.php?nlid=$1&idm=1 [NC]
RewriteRule ^idm/es/([^/]+) /modules/esdownload.php?esid=$1&idm=1 [NC]
RewriteRule ^idm/ul/([^/]+) /modules/uldownload.php?ulid=$1&idm=1 [NC]
RewriteRule ^idm/df/([^/]+) /modules/dfdownload.php?dfid=$1&idm=1 [NC]
RewriteRule ^idm/ms/([^/]+) /modules/msdownload.php?msid=$1&idm=1 [NC]
RewriteRule ^idm/mv/([^/]+) /modules/mvdownload.php?mvid=$1&idm=1 [NC]
RewriteRule ^idm/mp/([^/]+) /modules/mpdownload.php?mpid=$1&idm=1 [NC]

Please help me!
 
Old 02-20-2010, 12:55 AM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 13,446

Rep: Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797Reputation: 1797
some more info would be nice. Like what have you done so far?
have you read the Apache docs on mod rewrite ?
http://httpd.apache.org/docs/2.2/rewrite/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
conf :Mod rewrite,Mod Jkand virtualhosts ayyappansan Linux - Server 1 10-25-2009 04:10 AM
mod rewrite question jamsda Linux - Server 1 10-18-2008 07:31 PM
Apache2 mod vhost_alias - problems with .htaccess mod rewrite d_t_baker Linux - Server 1 08-16-2007 08:32 PM
Exception in mod-rewrite rule Boby Programming 0 01-17-2006 08:40 PM
Mod Rewrite Help carminejg3 Linux - Software 0 12-20-2004 06:19 PM


All times are GMT -5. The time now is 09:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration