dimanche 30 novembre 2014

My permalinks are not working on new server


I am going nuts trying to figure out the rewrite rule for a site that I am moving. I have an old server danceprarade.org/wp and I want to move it to a new server new.danceparade.org/ (no wp). I have the following .htaccess file on the new server and it doesn't seem to load at all. I have the rewrite rules inspector plugin installed and it show "no rewrite rules were found". The .htaccess is in the route of the wordpress site. I am using centos on the new server and linux on the old server. Php v5.3.13 on old server 5.3.3 on new. Mysql 5.0.81 on old and 5.1.73 on new. Here is the .htaccess on the new server:



RewriteEngine on
#RewriteCond %{HTTP_REFERER} !^http://danceparade.org/.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http://danceparade.org$ [NC]
#RewriteCond %{HTTP_REFERER} !^http://www.danceparade.org/.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http://www.danceparade.org$ [NC]
#RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
Redirect 301 /EE/index.php, http://danceparade.org/
Redirect 301 /wp/, http://new.danceparade.org/
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress


I don't understand why it is not picking up anything. Note I only have a vague idea as to how .htaccess works :-(


Any help would be most appreciated.


Thanks/Hal





Aucun commentaire:

Enregistrer un commentaire