Wordpress inside Cakephp

后端 未结 3 1986
没有蜡笔的小新
没有蜡笔的小新 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:48

    I tried both the above codes but none work for me.. then i found something by my own and it worked..So here it is ,, hope this will help some.

    First Add the WordPress folder inside the webroot folder as blog. Inside blog paste the WordPress directories and files.. install the WordPress.. Now you will see in the WordPress admin general settings WordPress Address as http://cakephp/blog/app/webroot/blog, Change it to http://cakephp/blog. Save it ..

    Now look for the .htaccess file in WordPress install root folder change RewriteBase and RewriteRule (last one ) to RewriteBase /blog/ and RewriteRule . /blog/index.php [L]

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

提交回复
热议问题