WordPress的htaccess /永久链接问题 [英] htaccess/Permalink issue with Wordpress

查看:92
本文介绍了WordPress的htaccess /永久链接问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我遇到了我在ubuntu服务器上托管的WordPress网站的永久链接问题。每当我保存永久链接设置时,我都会收到修改.htaccess文件的错误并更新下面提供的设置,



 <   IfModule     mod_rewrite.c  >  
RewriteEngine On
RewriteBase / wordpress /
RewriteRule ^ index\.php $ - [L]
RewriteCond%{REQUEST_FILENAME}!-f
RewriteCond%{REQUEST_FILENAME}!-d
RewriteRule。 /wordpress/index.php [L]
< / IfModule >







我做了这个活动,但链接是不工作我收到404错误。

在更新此文件链接之前,url用于处理index.php /< post-name>

这个.htaccess文件放在我安装文件夹的文件夹中。



这方面的任何输入都会很明显。

提前致谢。

解决方案

- [L]
RewriteCond%{REQUEST_FILENAME}!-f
RewriteCond%{REQUEST_FILENAME}!-d
RewriteRule。 /wordpress/index.php [L]
< / IfModule >







我做了这个活动,但链接是不工作我收到404错误。

在更新此文件链接之前,url用于处理index.php /< post-name>

这个.htaccess文件放在我安装文件夹的文件夹中。



这方面的任何输入都会很明显。

提前致谢。


Hello,

I'm facing an issue with Permalink for Wordpress site that I have hosted on ubuntu server. Whenever I save the permalink setting I receive an error to modify .htaccess file and update the setting as provided below,

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>




I did this activity but the links are not working I'm receiving 404 error.
Before updating this file link the url's used to work with index.php/<post-name>
This .htaccess file is placed in the folder where I have installed the folder.

Any input in this regard will be appreciable.
Thanks in advance.

解决方案

- [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L] </IfModule>




I did this activity but the links are not working I'm receiving 404 error.
Before updating this file link the url's used to work with index.php/<post-name>
This .htaccess file is placed in the folder where I have installed the folder.

Any input in this regard will be appreciable.
Thanks in advance.


这篇关于WordPress的htaccess /永久链接问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆