Jin You
Jin You

Reputation: 2358

wordpress permalink postname 404 on localhost

I am facing a very common issue here hoping someone have the same experience could help me. The issue is quite normal. I could find plenty issue posts and solutions by search google.

For example: http://wordpress.org/support/topic/wordpress-permalink-404-issue

But the weird thing is after I delete # from

#LoadModule rewrite_module modules/mod_rewrite.so

and also did this part:

I opened up the httpd.conf file and found:

<Directory />
  Options FollowSymLinks
  AllowOverride none
  Order deny,allow
  Deny from all
</Directory>

and changed the AllowOverride none to AllowOverride all.

Now it's looking like this:

<Directory />
  Options FollowSymLinks
  AllowOverride All
</Directory>

but it's still not working.

I'm using WAMP for my localhost and the website works well when I change permalink setting back to default (with post ID).
Here is the .htaccess code I'm using.

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

# END WordPress

Did I miss something? Really need your help! Thanks in advance.

Upvotes: 2

Views: 6859

Answers (2)

KarSho
KarSho

Reputation: 5746

I Got Answer. It's easy only.

1) Go to WAMP logo in right-bottom of Task-bar of Windows.

2) Click left button

3) then Apache -> Apache Modules

4) Tic(select) the rewrite_module

5) that's all.

For More

Upvotes: 6

user3453449
user3453449

Reputation: 1

1) Go to WAMP logo in right-bottom of Task-bar of Windows.

2) Click left button

3) then Apache -> Apache Modules

4) Tic(select) the rewrite_module

5) that's all.

THIS WORKS, THANKS A MILLION. I spent hours trying to solve this problem, f* ridiculous! I'm just learning to use wordpress and got completely stuck with a simple thing like adding a page, complete waste of time. Almost decided to use joomla....

Upvotes: 0

Related Questions