Posted by & filed under Developer Blog.

If you are using the instructions found on Bluehost’s Knowledgebase about How to host the Primary Domain from a subfolder for a wordpress site, you may notice that when you add wp-admin to the end of your URL it seems that can’t log in. The issue is that there are so much redirect magic going on, that the correct handling of redirecting /wp-admin without a slash to /wp-admin/ with a slash doesn’t happen correctly. You can fix this by either always typing the trailing slash, bookmarking it with the slash and not typing at all, or using the following addition to the bluehost .htaccess file they provide. Add it just below the line containing “RewriteEngine on”:

# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ /wp-admin/ [R=301,L]