In ccadmin/index.php this adds an extra catch to step_3.php to check and see if pretty_urls is turned on and if so runs a new function, install_htaccess().
install_htaccess() is modeled after install_db_config(). It checks to see if there is an existing .htaccess file and if so it disables the pretty_urls option and warns the user. If there is not a .htaccess file, it tries to create one, again disabling the option and warning the user if creating it fails.
I've tested this on my server, It seems to work pretty well.
The only bug I noticed was that it gives me the error 'Error creating tables:' at the beginning of the database section if install_htaccess fails. It also gave me the tables error when my admin password contained un allowed characters, however, so I believe that this is a bug unrelated to my code.
Log in to post a comment.