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 trialDennis Eitner
Full Stack JavaScript Techdegree Graduate 25,644 PointsThe 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
3,861 PointsHave you updated your permalinks after adding the .htaccess file? Also, is the .htaccess file in the site root or wordpress root?
Dennis Eitner
Full Stack JavaScript Techdegree Graduate 25,644 Pointsthanks magnus. Did that all. Somewhat it was a caching issue. It works now. thank you for your help.