Permalinks are not working in Wordpress

I deployed My Wordpress Blog in one of my subdomains in Digital Ocean.I am running apache2 as my webserver..htaccess fi

I deployed My Wordpress Blog in one of my subdomains in Digital Ocean. I am running apache2 as my webserver.

.htaccess file related to my WordPress installation:

  # 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

Virtual host file related to Wordpress Site:

<VirtualHost *:80>
    ServerName blog.gopibabu.live
    ServerAlias www.blog.gopibabu.live

    DocumentRoot /var/www/MyBlog

        <Directory /var/www/MyBlog>
          Options Indexes FollowSymLinks MultiViews
          AllowOverride All
          Require all granted
        </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    RewriteEngine on
    RewriteCond %{SERVER_NAME} =blog.gopibabu.live [OR]
    RewriteCond %{SERVER_NAME} =www.blog.gopibabu.live
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

When I am trying to change my permalink settings to settings other than plain(Only plain setting is working), I am getting 404 Page

404 page

Can any one help to fix this problem?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745216398a4617045.html

相关推荐

  • Permalinks are not working in Wordpress

    I deployed My Wordpress Blog in one of my subdomains in Digital Ocean.I am running apache2 as my webserver..htaccess fi

    7小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信