Project

General

Profile

Wildcard subdomains , htaccess to lighthttpd

Added by Maxywaxyy about 16 years ago

I'm able to edit the lighttpd file via LXadmin at my VPS.

This is the code that i used in htaccess:

RewriteEngine On
RewriteRule ^onderwerpen-([A-Za-z0-9])\.html$ viewList.php?sLetter=$1 [L]

RewriteRule ^tag/(.*)$ search.php?tag=$1 [L]
RewriteRule ^search$ search.php [L]

#page
RewriteCond %{HTTP_HOST} ^(.*)\.linkhyver\.com$
RewriteCond %1 !^www$
RewriteRule ^$ http://www.linkhyver\.com\/showPage/showPage.php?sPage=%1 [L]

  RewriteCond %{HTTP_HOST} ^(.*)\.linkhyver\.com$
 RewriteCond %{1} !^www$
RewriteRule ^([A-Za-z0-9-]+)\.html$ /showPage/showCat.php?sPage=%1&s

This is how far I came searching to convert it to lighthttpd:

$HTTP["host"] =~ "^(.+\.)?linkhyver\.tld$" {
# your config here
 } 

Would be great if you guys can help me out because I prefer lightttpd inst. of htaccess.

greets,

Max


Replies (1)

RE: Wildcard subdomains , htaccess to lighthttpd - Added by Maxywaxyy about 16 years ago

Everything works fine now at http://www.linkhyver.com

If anybody needs the code for wildcard subdomains PM me.

    (1-1/1)