[Scottish] mod_rewrite help
William Anderson
neuro at well.com
Mon Jan 15 06:08:16 GMT 2007
Kyle Gordon wrote:
> 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.
index.php:
<?php header("Location: 301 /blog/"); ?>
> 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/
For the love of christ, why? Your wordpress install certainly won't
link to posts like that.
--
_ __/| William Anderson | Tim: Your cheese game is strong.
\`O_o' neuro at well dot com | Zane: My cheese game. It's all about the
=(_ _)= http://neuro.me.uk/ | cheese platter.
U - Thhbt! GPG 0xFA5F1100 | -- Tim Westwood, Zane Lowe, R1, Dec 2005
More information about the Scottish
mailing list