|
What do you get when you put a webserver on a diet? You get lighttpd: a speedy, fast, secure, and standards-compliant webserver. If you decide to put your web hosting budget on a diet, consider VPS Hosting from VPSLink. Our Link-1 plan includes 24/7/365 hardware and network support, full root access, and - most importantly - it gets along quite well with lighttpd. |
|
|||
|
Hi,
please reply this, How to convert this .htaccess file to lighttpd rewrite rule RewriteRule ^(css|js|grafika|sample_photos|avatars25|avatars_m ini|avatars_group|resources|ajax|colourmod|rss|bac kgrounds|bglib|adminlogin|vision|post_img|logo|db_ backup) - [L] RewriteRule ^api\/ - [L] RewriteRule ^(logout.php|randompic.php|sticker_data.php|my_sta tus.php|sticker.swf|delete_me.php|get_sms.php) - [L] RewriteRule ^[^/].*$ index.php Thanks. |
|
|||
|
From the lighttpd mod_rewrite documentation:
Quote:
|
|
|||
|
Hi,
this rule ok thank you url.rewrite-once = ( "^(/(?!(css|js)).*)" => "/index.php" ) i create another rule url.rewrite-once = ( "^(/(?!(/mitdev/revou/(css|js))).*)" => "/mitdev/revou/index.php" ) But this is not working. i have no idea???/ |
|
|||
|
hi,
i want negative match using directory i use given code url.rewrite-once = ( "^(/(?!(/mitdev/revou/(adminlogin|grafika))).*)" => "/mitdev/revou/index.php" ). But this is not working. I want Negative match using dirctory. |
|
|||
|
In that case, your rule would look more like this:
Code:
url.rewrite-once = ( "(.*)(/(?!.*(directory\/|subdirectory\/)$))" => "$1/index.html" ) To make your rules as easy as possible to manage in the future (or to assist with automated rule generation), you may want to add rules in the following manner: Code:
url.rewrite-once = ( "(.*)(/(?!.*(directory\/)$))" => "$1/index.html", "(.*)(/(?!.*(subdirectory\/)$))" => "$1/index.html" ) |
![]() |
| Bookmarks |
| Tags |
| lighttpd, modrewrite, rewriterul |
| Thread Tools | |
| Display Modes | |
|
|