Page 1 of 1

Very simple rewrite rule!

Posted: Sun Feb 17, 2008 10:59 am
by erinther
Hi,
I know it should be very very simple but I don't know how to do it.
I need a rule to change my url's:

Code: Select all

http://mydomain.com/blogs/whatever
to

Code: Select all

http://mydomain.com/whatever
Thanks.

Re: Very simple rewrite rule!

Posted: Sun Feb 17, 2008 2:49 pm
by monkey56657
RewriteEngine On

RewriteRule /blogs/(.*) /$1 [L]
Untested. Whack it in a .htaccess file at site root.

You might need to remove the first / on the 2 strings on some server configs.

Re: Very simple rewrite rule!

Posted: Thu Feb 21, 2008 7:33 am
by erinther
Sorry! It didn't work.