kruc3fix Posted September 3, 2007 Share Posted September 3, 2007 Hi, This is my first post in this forum and I would like to say HI to everyone! I have this sandbox site http://www.bootsnall.com/frame/ HTTP login - user: frame password: 12 .. and basicaly all my links are like this: http:/www.bootsnall.com/frame/index.php?frame_action=module/action Placing a mod_rewrite rule like this one: RewriteRule ^(.*)$ /frame/web/index.php?frame_action=$1 [QSA,L] will actualy change all my links to: http:/www.bootsnall.com/frame/login.html The question is: How do I forbid people from going to "index(.*)" pages ? http:/www.bootsnall.com/frame/index.html http:/www.bootsnall.com/frame/index.php http:/www.bootsnall.com/frame/index.php?frame_action=module/action http:/www.bootsnall.com/frame/index.php?haxxxx=true .. etc.... I want the main page to only be accesible by going to http:/www.bootsnall.com/frame and not http:/www.bootsnall.com/frame/index.html or other variants and also I want people to use http:/www.bootsnall.com/frame/page.html and not http:/www.bootsnall.com/frame/index.php?frame_action=module/page A possible solution: - Can I do the following? main rule: RewriteRule ^(.*)$ /frame/web/index.php?frame_action=$1 [QSA,L] [.. some end flag that will not let the next rule to be triggered ..] second rule: [.. If the above rule does not apply than follow this rule ..] Link to comment https://forums.phpfreaks.com/topic/67745-forbid-rule-if-everything-fails/ Share on other sites More sharing options...
d22552000 Posted September 3, 2007 Share Posted September 3, 2007 OOOOOOOOO I so want to help you, but I suck wiht mod_rewrite and that shit ... Uh, set a file on index.html,phph and blah and set them to only be accessible if hte refferer was /frame ? I only know how to do that in php though, sorry bud. Link to comment https://forums.phpfreaks.com/topic/67745-forbid-rule-if-everything-fails/#findComment-340494 Share on other sites More sharing options...
steviewdr Posted September 4, 2007 Share Posted September 4, 2007 I suggest you post this to the Mod_Rewrite board here on phpfreaks. Id have to go looking into your problem indepth and Im afraid I dont have the time atm. Something like: Redirect 301 ^(index.*)$ /........ -steve Link to comment https://forums.phpfreaks.com/topic/67745-forbid-rule-if-everything-fails/#findComment-341406 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.