Page 1 of 1

mod_rewrite: any folder name will do?

Posted: Fri Jan 02, 2009 1:53 pm
by debz
Using mod_rewrite "use_hierarchy" config setting true or false, I am able to call a url with any number of folder names so long as the last thing I write in the url address bar contains the actual page I want. Is there a way to stop this happening so that only a concrete url is valid?

For example:
www.mydomain.com/page1.html

Can be called by typing the url in the browser url field in any way I like:
www.mydomain.com/any/thing/I/want/page1.html
or
www.mydomain.com/hello/world/page1.html

and so on...

Can I stop this happening?

Debz (using cmsms v1.5.1)

Re: mod_rewrite: any folder name will do?

Posted: Fri Jan 02, 2009 7:37 pm
by Dr.CSS
I believe this would be a .htaccess call to stop it from happening...

Re: mod_rewrite: any folder name will do?

Posted: Thu Jan 15, 2009 8:58 pm
by Pierre M.
Hello,

may be this can help : http://forum.cmsmadesimple.org/index.ph ... 550.0.html

Pierre M.