Rewrite URL and folders

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
Sonya

Rewrite URL and folders

Post by Sonya »

Hello,

I use standard .htaccess delivered with CMS Made Simple in the folder doc as htaccess.txt. The problem that I have is that if I create a page in CMS Made Simple with page alias that equals to the folder name, rewrite rule is ignored and I am redirected directly to the folder.

Example 1: a page has an alias 'uploads'. There is already a folder named 'uploads'. Rewrite rule is ignored and I am redirected into the folder upload.

Example 2 [SOLVED]: a page has an alias ' preview'. There is already a file named 'preview.php'. Rewrite rule is ignored and a file preview.php called instead.

The second example deals with my server configuration allowing MultiViews. I had to add -MultiViews to .htaccess

Code: Select all

Options +FollowSymLinks -MultiViews
However I cannot solve the problem in the first example.

Thank you for your help.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Rewrite URL and folders

Post by Nullig »

I would just change the page aliases and avoid the problem.

Also, I've read that the Multiviews option creates errors for Google's bots, when they try to index your pages.

Nullig
Sonya

Re: Rewrite URL and folders

Post by Sonya »

Nullig wrote: I would just change the page aliases and avoid the problem.
It would be the easiest solution. I just wanted to know if this behavior depends on my server configuration or if it is just "normal" :)
Nullig wrote: Also, I've read that the Multiviews option creates errors for Google's bots, when they try to index your pages.
Thank you for Google hint!
Locked

Return to “CMSMS Core”