Forum Moderators: phranque
I have this sandbox site [url]http://www.example.com/frame/[/url]
HTTP login -
user: frame
password: 12
.. and basically all my links are like this:
http:/www.example.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 actually change all my links to:
http:/www.example.com/frame/login.html
The question is: How do I forbid people from going to "index(.*)" pages?
http:/www.example.com/frame/index.html
http:/www.example.com/frame/index.php
http:/www.example.com/frame/index.php?frame_action=module/action
http:/www.example.com/frame/index.php?ha****=true
.. etc....
I want the main page to only be accessible by going to
http:/www.example.com/frame
and not
http:/www.example.com/frame/index.html
or other variants and also I want people to use
http:/www.example.com/frame/page.html
and not
http:/www.example.com/frame/index.php?frame_action=module/page
[u]A possible solution:[/u] - 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 ..]
[edited by: jdMorgan at 12:23 am (utc) on Sep. 4, 2007]
[edit reason] Example.com. See Terms of Service. [/edit]