Home » Htaccess Tools » Questions regarding htaccess » Blog htaccess
Blog htaccess [message #869] Tue, 29 January 2008 09:00 Go to next message
Blogger1  is currently offline Blogger1
Messages: 1
Registered: January 2008
I have a blog and I would like to have .htaccess that redirects all URLs like these

mysite.com/2008/01/index.htm
mysite.com/2008/02/index.htm
mysite.com/2008/03/index.htm

into URLs like these

mysite.com/2008/01/
mysite.com/2008/02/
mysite.com/2008/03/

In other words just removing that index.htm. I am sure other people with blogs would like that too. Any idea how to do it?


Re: Blog htaccess [message #921 is a reply to message #869 ] Fri, 18 April 2008 14:40 Go to previous message
andreas  is currently offline andreas
Messages: 239
Registered: January 2005
Location: Denmark

Site Admin
Try this .htaccess in your web root:

RewriteEngine on
RewriteRule ^/[0-9]+/[0-9]+/index.htm$ /$1/$2/ [L]
Previous Topic:Rewriterule with 2 x parenthesis
Next Topic:Changed my domain name, how do i redirect ?
Goto Forum:
  


Current Time: Sat May 17 07:44:09 CEST 2008

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software