简体   繁体   English

WordPress自定义永久链接

[英]Wordpress Custom Permalink

I have an issue with Wordpress permalinks. 我对Wordpress永久链接有问题。

I created a Wordpress website offline, using EasyPhp WebServer 14.1. 我使用EasyPhp WebServer 14.1离线创建了一个Wordpress网站。 In this website, my pages had default names, like : ?p=123 在此网站中,我的页面具有默认名称,例如: ?p = 123

After putting it online, I created an empty .htaccess file at the root of the folder, with 777 rights (just to be sure it could be written). 将其联机后,我在文件夹的根目录下创建了一个具有777权限的空.htaccess文件(以确保可以写入)。 Then I changed the permalink option into "name article". 然后,我将永久链接选项更改为“名称文章”。

The .htaccess file has been modified, it contains now : .htaccess文件已被修改,现在包含:

# 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

However, all the pages (each of them but the home page) can't be found. 但是,找不到所有页面(每个页面都只有主页)。 I get something like 我得到类似

Oops ! 糟糕! That page can't be found. 找不到该页面。 It looks like nothing was found at this location. 似乎在此位置未找到任何内容。 Maybe try one of the links below or a search? 也许尝试下面的链接之一或进行搜索?

The website URL is : http://www.vogliadimare.fr 网站网址是: http : //www.vogliadimare.fr

What did I do wrong ? 我做错了什么 ? Where could this come from ? 这可能从哪里来?

Thanks 谢谢

Please test : 请测试:

1) Edit httpd.conf and following steps: 1)编辑httpd.conf并执行以下步骤:

2) Search and replace : 2)搜索并替换:

#LoadModule rewrite_module modules/mod_rewrite.so 

to --> (Remove #) LoadModule rewrite_module modules/mod_rewrite.so 到->(删除#) LoadModule rewrite_module modules/mod_rewrite.so

3)Search and replace : 3)搜索并替换:

AllowOverride None to --> AllowOverride All AllowOverride None到-> AllowOverride All

4) Restart services from your Local Server 4)从本地服务器重新启动服务

5) Refresh permalinks , set permalink_structure and save configuration, again set permalink_structure /%postname%/ and save. 5)刷新永久链接,设置permalink_structure并保存配置,再次设置permalink_structure /%postname%/并保存。

Good Luck 祝好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM