htaccess file

asked May 9, 2013 in General by reema40 (820 points)

I  have a php site with all my redirects  placed  in the htaccess file. I want to install WordPress on my directory, but I am afraid that my .htaccess file will be overwritten, and end up messing up my site.
How can I avoid this? Kindly help

2 Answers

0 like 0 dislike
answered May 9, 2013 by TopNet (10,360 points)
WordPress install doesn’t  have a .htaccess file, so your .htaccess file will not be overwritten when you install WordPress. You should install WordPress in a subdirectory if you want to test it before and be on the safe side. Make sure you have an up to date back up, in case anything goes wrong.
0 like 0 dislike
answered May 11, 2013 by A1-Web-Solutions (220 points)

YES wordpress does use .htaccess, as do several WP plugins (like WP Super Cache et al.)

The way I suggest to go about this, is save your current .htaccess to a text file on your desktop, go ahead and install wordpress and your plugins, and then after wordpress is installed, copy your original .htaccess back to the file UNDERNEATH any rules that WordPress may have written.

Leaving a space between the WP .htaccess and your original .htaccess will make it easier to edit either of them in the future.