I have configured my Blog on http://blog.example.com. For this I have an Apache Conf file which direct the user to /blog directory.
I have two major issues:
1.) After installation, when I try to open admin panel from http://blog.example.com/admin/login, it throws 500 Internal Server Error. It seems the rewrite engine is not properly coded in the .htaccess file.
2.) When I open the site, http://blog.example.com, it opens normally, but when I click on the default 1st blog, again the Server throw 500 Internal Error and takes me to http://www.example.com/posts/my-blog in place of http://blog.example.com/posts/my-blog.
I think it has something to do with .htaccess file which sends rewrite information to server, which is incorrect.
Can you please advice what should be the edit for: <pre> RewriteRule ^(.*)$ index.php/$1 [L] </pre> so that I can remove index.php from the URL as well as keep the link to http://blog.example.com/ while browsing the blog?
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!