![]() |
Need help from a htaccess guru
I've been trying to figure out how I can set a .htaccess up so it will only be allowed to link to a few selected files.
IE. index.php out.php signup.php and some other files should be allowed. If someone is trying to enter the site through any other pages than the one that where approved they should be redirected to www.domain.com/index.php even though the other file exist. How is that possible? |
put index.php in it's own directory, put everything else in a subdirectory, and htaccess the subdirectory.
|
or format c:
|
Due,
I suggest that you remove the files that should not be displayed and redirect those requests to a 404 through .htaccess If no-one is supposed to see the files, you better remove them :) Brgds; Carl |
Mango>
That would in a normal situation. But this is for a CJ freehost where I offer script, domain and hosting for the CJ site (and offcourse I prefer offering FTP) but somehow people think it is cool to upload galleries and shit and submit to TGP's etc. so when people try that it will just be redirected straight away (and also declined and blacklistet by the TGP reviewer for redirecting) |
All times are GMT -7. The time now is 04:55 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123