Wordpress inside Cakephp

后端 未结 3 1991
没有蜡笔的小新
没有蜡笔的小新 2021-01-03 15:27

I have installed Wordpress inside Cakephp\'s /app/webroot/blog/ folder and changed the wordpress permalink settings to Month and name (eg. http://abc.com/

3条回答
  •  余生分开走
    2021-01-03 15:46

    When we change the permalink settings of Wordpress, it generates a .htaccess file, if there is required permission else we have to create it.

    In the above case there was no .htaccess file inside /blog/ folder. I created it with the following mod_rewrite rules as provided by Wordpress while changing permalink settings.

    
      RewriteEngine On
      RewriteBase /blog/
      RewriteRule ^index\.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /blog/index.php [L]
    
    

    After this every thing works fine.

提交回复
热议问题