I was previously running a .htaccess
file on my local development version of my Wordpress site without any issues, but making the equivalent changes to the .htaccess
file on my production site results in the entire site returning Error 500s.
The site is structured on the server like so:
- www.mydomain.com
-- logs
-- public_html
--- (Wordpress root folder)
--- .htaccess
--- index.php
-- webstats
Here is the modified .htaccess
file that I'm trying to get running on the site:
#START WORDPRESS
RewriteEngine On
RewriteBase /public_html/
RewriteRule ^about/?$ /public_html/about/history/ [L,NC,R=301]
RewriteRule ^library/?$ /public_html/the-library/gallery/ [L,NC,R=301]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
#END WORDPRESS
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
My understanding of the .htaccess syntax is very lacking, so I can't be sure what I'm getting wrong in the syntax of the file to cause this issue.