so, i'm trying move site on lighttpd can't seem url re-writes correct - idea these translate in lighttpd-speak?
rewriterule ^portfolio/([^/]+) /index.php?portfolio=$1 [nc] rewritecond $1 ^(portfolio|news|about|contact|home|p[0-9]{2,8}) [nc] rewriterule ^(.*)$ /index.php/$1 [l]
i've tried few configurations no avail:
"^/(?!portfolio)(.+)/?$" => "/index.php?portfolio=$1" "^/portfolio/(\d+)(?:\?(.*))?" => "/index.php?portfolio=$1"
i think work you:
"^(/portfolio/.*)$" => "/index.php?portfolio=$1"
that rewrite urls example.com/portfolio/123 index.php?portfolio=123
use ^(.*)$ rewrite 1 url
Comments
Post a Comment