admin管理员组文章数量:1287845
I have an Ubuntu 16 VPS running (LAMP) Apache+WordPress .
the permalinks are not functioning properly as i'm receiving 404 errors.
Hello, the following .htaccess files exist on the server:
/var/www/html/wp-snapshots/.htaccess /var/www/html/wp-includes/.htaccess /var/www/html/.htaccess /var/www/html/wp-content/plugins/litespeed-cache/lib/vendor/mrclay/minify/.htaccess
/var/www/html/.htaccess contains, the code below.
The WordPress settings are also set to " Post name ", and the url is still returning a 404 error: http://45.77.185.160/change-your-booking/?booking_hash=42fc52073d89cce21451a2b2e71e1f1a&booking_pay=1
I have an Ubuntu 16 VPS running (LAMP) Apache+WordPress .
the permalinks are not functioning properly as i'm receiving 404 errors.
Hello, the following .htaccess files exist on the server:
/var/www/html/wp-snapshots/.htaccess /var/www/html/wp-includes/.htaccess /var/www/html/.htaccess /var/www/html/wp-content/plugins/litespeed-cache/lib/vendor/mrclay/minify/.htaccess
/var/www/html/.htaccess contains, the code below.
The WordPress settings are also set to " Post name ", and the url is still returning a 404 error: http://45.77.185.160/change-your-booking/?booking_hash=42fc52073d89cce21451a2b2e71e1f1a&booking_pay=1
Share Improve this question edited May 10, 2018 at 3:41 Ian Arman asked May 8, 2018 at 6:19 Ian ArmanIan Arman 11 bronze badge 1- 1 You might want to update the permalink settings, even if you didn't change them. This is a very popular problem, with a very simple solution. – Johansson Commented May 8, 2018 at 8:11
2 Answers
Reset to default 1Though there are many possibilities like enable Apache web server with the mod_rewrite or check permissions to allow Wordpress to write to the .htaccess file.
It will be helpful for you, if you go through this for more details. https://codex.wordpress/Using_Permalinks
Create .htaccess
file in your WordPress folder and put below values:
# 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
Get more information about .htaccess
in WordPress
https://codex.wordpress/htaccess
本文标签: LAMP WordPress Permalinks 404 error
版权声明:本文标题:LAMP WordPress Permalinks 404 error 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741308401a2371507.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论