You are not logged in.

#1 2009-06-17 21:10:10

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

mod_rewrite

I'm trying to apply mod_rewrite for my wordpress blog, and I did, everything went alright, but I quickly found out it also affected, and broke all the links, to any of my subdomains. Any idea how to just keep it top-level? This is what I have in my lighttpd.conf:

$HTTP["host"] =~ "twilightlair\.net" {
   var.wpdir = "/"
   include "wp-rewrite.conf"
}

[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#2 2009-06-17 23:47:05

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: mod_rewrite

My guess is you should turn the =~ into an exact match - == if i recall correctly?

I've been playing with it too, still haven't got the time though to fix it thoroughly.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2009-06-17 23:59:22

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: mod_rewrite

well, the subdomains are fine...but the main domain doesn't work either with the '==' tongue

EDIT: fixed, thanks

Last edited by Stythys (2009-06-18 06:17:09)


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#4 2009-06-18 06:17:26

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: mod_rewrite

  $HTTP["host"] =~ "(^|www\.)twilightlair\.net$" {

Alternately, you can just separately capture the www and redirect to the base domain.
Unless..that isn't what you wanted to do..


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#5 2009-06-18 11:32:40

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: mod_rewrite

Stythys: how did you get it to work?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2009-06-18 20:23:02

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: mod_rewrite

I took out the "\" is twilightlair\.net


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

Board footer

Powered by FluxBB