On Wednesday 06 September 2006 10:53, Nick Wiltshire wrote:
> So, on my laptop I have:

you know you can have virtualhosts on your laptop too right? just throw an 
name in /etc/hosts on the localhost line and use that name in your apache 
config. prevents having to mess with the rewrite rules at all. anyways....

> RewriteRule ^/test/website/(.*) /test/website/index.php?var=$1

this works perfectly here. 

> RewriteRule /test/website/(.*) /test/website/index.php?var=$1

as does this, though you do want the ^ so you don't get something odd in case 
of /foo/text/website

> I get an internal server error

can you please be verbose? you say you get an error .. well.. which one?! the 
fewer details you provide the more likely it is no one will be able to help 
you effectively.

> Oh, another thing that might matter is I am putting these rules in the
> <Directory /> context.

rewrite rules work rather differently in Directory and .htaccess contexts than 
they do in the main server config. i really recommend reading 
the "Per-directory rewrites" section on this page:

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

-- 
Aaron J. Seigo
Undulate Your Wantonness
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

Full time KDE developer sponsored by Trolltech (http://www.trolltech.com)

Attachment: pgpXpVriPjpjD.pgp
Description: PGP signature

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to