开发者

wordpress .htaccess with permalinks

开发者 https://www.devze.com 2022-12-18 05:16 出处:网络
I have a permalink working but as soon as I create a post it tells me that soory post not found permalink setting is to \"/%pagename%/\" and here is .htacc开发者_如何学运维ess:

I have a permalink working but as soon as I create a post it tells me that soory post not found permalink setting is to "/%pagename%/" and here is .htacc开发者_如何学运维ess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /ryan/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . ryan/index.php [L]
    </IfModule>
# END WordPress


Try clearing the permalink setting in wp_options in the database and then reset permalinks in Wordpress. It's usually option_id 30 and called permalink_structure.


Check your apache configuration and verify that for the directory in which you store your Wordpress installation you have following settings enabled (probably you will have more configuration options for the specific directory, but these are the minimum required for Wordpress fancy permalinks):

<Directory var/www/>
FollowSymLinks
AllowOverride All
</Directory>


Do you have mod_rewrite installed on the server?


Try %postname% in permalink setting rather than /%pagename%/

0

精彩评论

暂无评论...
验证码 换一张
取 消