Jump to content

Blocking access to addresses with extensions (i.e. mysite.com/mypage.htm)


Mattyspatty

Recommended Posts

hi, i hope i can get a speedy response to this its driving me nuts!


im trying to create a website, currently my pages are includes on an index page;
[b][color=green]mydomain.com/[/color][color=red]index.php?page=[/color][color=green]home[/color][/b] (for example)

My problem is that i want to remove the red bits, i.e. [b][color=green]mydomain.com/home[/color][/b]  thus creating a nice simple and easy to navigate adressing system. ive managed to do this with mod_rewrite but i also want to completely BLOCK the abilty for users to view anything by typing the full address, as in the first example (this includes my images and other files)

i have tried to block pages that have an extension to their address i.e. test.php but i always get a loop or nothing happens! perhaps i have been doing something wrong. All constructive responses are much appreciated!

thanks in advance, Matty

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.