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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.