mod_rewrite: any folder name will do?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
debz

mod_rewrite: any folder name will do?

Post 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)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: mod_rewrite: any folder name will do?

Post by Dr.CSS »

I believe this would be a .htaccess call to stop it from happening...
Pierre M.

Re: mod_rewrite: any folder name will do?

Post by Pierre M. »

Hello,

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

Pierre M.
Locked

Return to “CMSMS Core”