admin管理员组文章数量:1391943
I just migrated my ecommerce website (www.getfitkart) from shared hosting to Linode. Now only the home page is working but the other pages are not getting served. I am getting the following error on all other pages like say, /
Not Found
The requested URL /privacy-policy/ was not found on this server.
My .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Any help will be greatly appreciated.
I just migrated my ecommerce website (www.getfitkart) from shared hosting to Linode. Now only the home page is working but the other pages are not getting served. I am getting the following error on all other pages like say, http://www.getfitkart/privacy-policy/
Not Found
The requested URL /privacy-policy/ was not found on this server.
My .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Any help will be greatly appreciated.
Share Improve this question edited Aug 14, 2019 at 7:11 nmr 4,5672 gold badges17 silver badges25 bronze badges asked Jan 20, 2017 at 6:25 NajeebNajeeb 3531 gold badge2 silver badges10 bronze badges5 Answers
Reset to default 19Go to settings->permalinks and click on save button to rewrite flush. And then empty your browser cache. It'll work hopefully.
I found the solution here:
https://www.digitalocean/community/questions/wordpress-permalinks-not-working-on-ubuntu-14-04
The thing is that we need to allow the override all option in httpd.conf (location: /etc/httpd/conf/httpd.conf) for your specific hosting directory.
Sometimes on a new server it's just the rewrite module missing from Apache config.
sudo a2enmod rewrite
sudo service apache2 restart
Solved this problem on Linux Mint 19 / PHP Version 7.2.19-0ubuntu0.18.04.1 by changing:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
to:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
in /etc/apache2/apache2.conf.
Hope this helps!
Dear friend after moving site : go to your phone admin Then choose your database. Click on wp-option Change raw 25 to 500 Change site url : http://www.yourwebsite search -- path : change path of your upload
Save it Login your site: www.yoursitename/wp-admin Go to settings Then go to Permalink Do not change anything Just Save it.
Now try your all page.
本文标签: WordPress Migration Getting 404 Errors Only Home Page works
版权声明:本文标题:WordPress Migration: Getting 404 Errors: Only Home Page works 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744669008a2618709.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论