Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress Permalink发布Apache(index.php)_Wordpress_Apache_.htaccess - Fatal编程技术网

Wordpress Permalink发布Apache(index.php)

Wordpress Permalink发布Apache(index.php),wordpress,apache,.htaccess,Wordpress,Apache,.htaccess,我在网上尝试了几乎所有的方法,但是我无法解决这个问题。我刚把我的Wordpress网站转到Azure。永久链接现在不工作 apache2.conf中的以下选项处于启用状态: <Directory /> Options FollowSymLinks AllowOverride All Require all denied </Directory> <Directory /usr/share> Al

我在网上尝试了几乎所有的方法,但是我无法解决这个问题。我刚把我的Wordpress网站转到Azure。永久链接现在不工作

apache2.conf
中的以下选项处于启用状态:

<Directory />
        Options FollowSymLinks
        AllowOverride All
        Require all denied
</Directory>

<Directory /usr/share>
        AllowOverride All
        Require all granted
</Directory>

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
模块重写也已启用

/var/www/html$ sudo a2enmod rewrite
Module rewrite already enabled
我只能在页面和网站url之间使用index.php访问文件

http://www.indiafastener.com/index.php/archives/1434 -- Works fine
但是,上述方法将起作用

http://www.indiafastener.com/archives/1434 -- Returns 404

转到wordpress面板,更改网站URL或在数据库中执行。URL已通过数据库更新。转到wordpress面板,更改网站URL或在数据库中执行。URL已通过数据库更新
http://www.indiafastener.com/archives/1434 -- Returns 404