Pretty URLs, Apache and .htaccess

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Pretty URLs, Apache and .htaccess

Post by KitchM »

Pretty URL's appear to need a .htaccess file. However, Apache states that such is not the preferred method of access control.

Please compare:
In general, you should never use .htaccess files unless you don't have access to the main server configuration file. There is, for example, a prevailing misconception that user authentication should always be done in .htaccess files. This is simply not the case. You can put user authentication configurations in the main server configuration, and this is, in fact, the preferred way to do things.
from http://httpd.apache.org/docs/2.0/howto/htaccess.html
Step 1

Copy the file "htaccess.txt" from the doc folder to the root of your website.
Rename the file to ".htaccess" (Note the dot in front of htaccess).

The htaccess.txt file distributed with CMSMS contains other optimizations that are often useful for production websites. It may be useful to read this file and understand its contents.
from http://docs.cmsmadesimple.org/configuration/pretty-url

And worse, security improvements appear to require the use of mod_rewrite in a .htaccess file.

Does anyone have any thoughts on this situation? Which is the best process and combination over all? Doesn't security demand certain steps no matter what?

Sometimes simple subjects appear so confusing. Is there a consensus on these things?

For other references, please see:
http://blog.arvixe.com/easy-steps-for-s ... tallation/
http://blog.arvixe.com/is-your-cms-made ... roduction/
Post Reply

Return to “The Lounge”