Reputation: 27
I am running wordpress 4.2 in a local machine with wampserver64 at this point everything its ok, im just trying to create a wordpress template, I have index.php, header.php, footer.php, sidebar.php, style.css, single.php, functions.php and category.php
but the problem comes when i click on a post category link I get http://localhost/wordpress/index.php/category/music/ i get file not found instead of localhost/wordpress/category/music/ with the post with that category.
I have the loop on category.php but its not loading category.php I dont know why,it seems that wordpress is trying to find the categories in index.php and not from category.php
Upvotes: 1
Views: 1845
Reputation: 5166
try these solution if it helps
1) change your permalink structure to default just to check
or
2) create a .htaccess
file on root and insert this code
your .htacces file looks like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /name_of_your_wordpress_installation_folder/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
# END WordPress
Upvotes: 1