1

I'm having a really unique issue with a local development environment. I currently have a WAMP Stack Running on ZendServer. On my computer, by default, port 80 is occupied, so I am using port 8080, and I'm having no issues with this whatsoever.

This issue first came to my attention when I started with a local WordPress install, and I can view the homepage and access the backend of WordPress with no issues. I can add/edit posts with no issues. I originally set up a vhost to have zr‑www.mywebsite.com:8080 to map into my htdocs folder and that works with no issues.

What then happens is that I go on the home page, then try to go to any page other than the home page (on the front end), and I get a 404 Not Found error. It is an exact clone of the live site, and when I test it on a linux-based LAMP Stack (Ubuntu) it works with no issues.

Any clarification on this would be greatly appreciated.

1
  • Sounds like a mod_rewrite issue. Is it installed and enabled? Nov 29, 2012 at 10:22

1 Answer 1

1

You forgot your WordPress rewrite rules. Make sure you enabled mod_rewrite and have the appropriate bits in .htaccess.

7
  • Here is my .htaccess file's contents, I do not think that is the issue # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /trafficbarricade/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /trafficbarricade/index.php [L] </IfModule> # END WordPress Nov 28, 2012 at 17:41
  • That's only half the story. Do the other thing: Enable mod_rewrite. Nov 28, 2012 at 17:42
  • It's enabled in the httpd.conf file (IE it's uncommented). I'm looking at the Mod_rewrite.so file and it basically looks like each row has 8 sets of 4 alphanumeric characters, is that right? Nov 28, 2012 at 17:45
  • You restarted Apache after enabling mod_rewrite? Is it really enabled? Nov 28, 2012 at 17:51
  • I've mod_rewrite was always enabled as far as I know, how do I check f it's "really enabled" on windows? Nov 28, 2012 at 18:02

Not the answer you're looking for? Browse other questions tagged .