Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Dennis Eitner
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Dennis Eitner
Full Stack JavaScript Techdegree Graduate 25,644 Points

The Wordpress Loop

I have installed wordpress localy and copied the project files into my theme folder. Also I have changed the permalinks to "postname". But when I create a page other then the sample page I get this message:

Not Found

The requested URL /blog was not found on this server.

Any idea why this is? I have added a .htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Thanks for any help.

2 Answers

Magnus Østrem Nesse
Magnus Østrem Nesse
3,861 Points

Have you updated your permalinks after adding the .htaccess file? Also, is the .htaccess file in the site root or wordpress root?