Page 1 of 1

Rewrite URL and folders

Posted: Sun Mar 29, 2009 7:11 pm
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.

Re: Rewrite URL and folders

Posted: Sun Mar 29, 2009 7:22 pm
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

Re: Rewrite URL and folders

Posted: Sun Mar 29, 2009 7:39 pm
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!