I have a website with a php application running on a droplet Ubuntu 16. http://addpost.io
In the /blog directory there is a Wordpress installed running quite fine. http://addpost.io/blog
I publish a post on the Wordpress blog, I see on the Wordpress homepage… but when I click ‘Read more’ to see the post entirely, it redirects to the home main website. But the URL is the post URL! https://addpost.io/blog/how-to-get-followers-on-instagram/
Any idea what is happen? Thanks.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Try this in your .htaccess in the blog/ folder:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blogx/index.php [L]
</IfModule>
You might need to comment out the current rewrite rules that you have there so this new code takes effect.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.