Simple mod_rewrite

New to mod_rewrite? This is a good place to start.

Simple mod_rewrite

Postby Quim » Tue Jun 02, 2009 9:44 pm

On my site, I have a file /blog.php

When I access it, for some reason, the url is displaying as /blog.php/

there is a folder called /blog/

If I type /blog, /blog/ or /blog.php, i get redirected to the blog.php, with the address shown as /blog.php/

What I would like is to have the address shown as /blog/ in all scenarios.

Any help greatly appreciated!

Thanks
Quim
 
Posts: 1
Joined: Tue Jun 02, 2009 9:39 pm

Postby richardk » Wed Jun 03, 2009 12:36 pm

Do you have some mod_rewrite already?

When the URL is /blog/, should the directory or blog.php be shown?
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 104 guests

cron