hey I just installed wordpress and everything is working fine but when I go to www.domain.com nothing shows up it only works when I go to www.domain.com/directory

anyone know how to change this?

I've tried googling it but I can't figure out how to "phrase" it to google, lol.


  • 2
    Where is WordPress installed on your server, in the document root or in /directory? What is site address set to? Commented Oct 4, 2013 at 14:08
  • 1
    Try: codex.wordpress.org/…
    – s_ha_dum
    Commented Oct 4, 2013 at 14:14

1 Answer 1



Install WordPress in a subdirectory, such as /2012. In your root folder (not the subdirectory folder), download and open your .htaccess file. Add the following to your .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$
RewriteRule ^(/)?$ blog [L]

In the above code, change the "YourDomain.com" value to your root domain. In the above code, change the "blog" value to the subdirectory. Save and upload the .htacess file back to your root directory.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.