[Scottish] mod_rewrite help

Kyle Gordon kyle at lodge.glasgownet.com
Sun Jan 14 01:43:45 GMT 2007


Evening all,

I'm having a minor disagreement with mod_rewrite...

I have my website at http://lodge.glasgownet.com/ which has a blog at
http://lodge.glasgownet.com/blog/. I'd like to transparently redirect
all requests to / to /blog/, but keep other subdirectories in the root
useable.

At the moment I use RewriteRule ^$ http://lodge.glasgownet.com/blog/
[R=302,L] which redirects the browser but fails to make it transparent.
I'd also like subdirs of /blog/ to be mapped back to / as well, like
making http://lodge.glasgownet.com/blog/2007/01/09/electricity-meter/
available from http://lodge.glasgownet.com/2007/01/09/electricity-meter/

Is anyone able to provide the required mod_rewrite-fu? I got lost after
trying to do a simple redirect :-)

Cheers,

Kyle





More information about the Scottish mailing list