If a Developers has developed a website/Web App on WordPress on His Laptop /Desktop .
Following needs to be Take Care/implement while Migration the wordpress to the Production Server.
Assuming the URL is www.domain.com and Localfolder name is webfolder
1.
www.domain.com
should point to the IP Address (A.B.C.D)
2. Replace all the entries in the Mysql Database from localhost to www.domain.com
3. If the Developer is using http://localhost/webfolder for development following needs to be updated in .htaccess fileCheck the error_log under apache Logs ;
If the Logs are like this
[Thu Oct xxxx xxx xxx ] [core:error] [pid 1472] [client X.y.z.c:64854]
AH00124: Request exceeded the limit of 10 internal redirects due to probable
configuration error. Use 'LimitInternalRecursion' to increase the limit if
necessary. Use 'LogLevel debug' to get a backtrace., referer: http://www.domain.com/wp-admin/index.php
The .htaccess file which you have copied from laptop/desktop to Production site look like this.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /webfolder
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /webfolder/index.php [L]
</IfModule>
# END WordPress
Update the .htaccess file as below – Remove folder name
# 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
Comments
Post a Comment