Do you have any plugins installed? tried disabling them? .htacess is hidden so make sure you have activated “show hidden folders icon” on your machine.
Thread Starter
danyru
(@danyru)
Hi! Thanks for your answers 🙂
I tried to disable and re-activate the plugins, but with unsuccessfully. Nothing has changed…
I’ve found the .htaccess thanks to Josh’s link. The content is:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
which is similar to what expected according to the WP documentation that I found here: https://codex.wordpress.org/Using_Permalinks
I suppose the difference between the expected file and mine, depend on the fact that I have this path: MAMP\htdocs\wordpress
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Any idea?
Thanks again for your help…
Dany
[ No bumping please. ]
What is happening?
You can get to the home page but get 404 errors when you go to other pages?
Have you tried renaming it and letting WP recreate it?
Thread Starter
danyru
(@danyru)
yes, I can get to the home page but get 404 errors when I go to other pages except portfolio items, that are visible. I get 404 errors even clicking on preview button from backend.
And yes, I tried to rename the page, duplicate the page and add a new page, but I always get 404 error page.
Until now, I have checked the htaccess file and it seems ok to me.
I have also changed “AllowOverride None” to “AllowOverride All” in httppd.conf, but nothing changed. I have checked if the line “LoadModule rewrite_module modules/mod_rewrite.so” was ok and I suppose it is, and then tried to uncomment all of the required lines but honestly I didn’t really know what I was doing. So I abandoned this idea and now I was thinking of uninstalling wordpress and mamp and try to do a fresh installation…I cannot understand where I am going wrong. ::shock::
Thread Starter
danyru
(@danyru)
Hi,
I have somehow solved the problem! 🙂
Here are my actions:
I changed “AllowOverride None” to “AllowOverride All” in httpd.conf
I have renamed the file “envars” in “_envars”
I deactivated all the plugins.
At this point the pages were visible, so I have re-activated all the plugins one by one and now it works 🙂 and canceled the useless plugins.
Thank you all for your support!
Dany
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
I changed “AllowOverride None” to “AllowOverride All” in httpd.conf
That will fix it almost every time. 😉
Just spent quite a while trying to sort this out but didn’t do the basics and check whether LoadModule rewrite_module modules/mod_rewrite.so was enabled.
Looks like it’s disabled by default in Max OS X Yosemite in /etc/apache2/httpd.conf so definitely worth checking this first! The other change needed was AllowOverride All in the Document <Directory> section.
Hope this helps.