Changing permalinks locally doesn't work

I’m having problems changing permalinks structure on wordpress locally. I’m running WAMP. I have WAMP set up in my documents folder

C:\Users\BrianB\Documents\wamp\www\wordpress\wp-content\ hemes\Connect4

I was testing out changing permalinks on this page, http://localhost/wordpress/?page_id=21

When I changed the permalinks structure to http://localhost/wordpress/sample-post/ it then changed this page url to

http://localhost/wordpress/ournewsblog/

However, when I got to this URL I get this message, “The requested URL /wordpress/ournewsblog/ was not found on this server.”

I’ve read online that this problem has to do with the .htaccess file. I did see that my .htaccess file was blank and so I added this

(note: my .htacess file is located at C:\Users\BrianB\Documents\wamp\www\wordpress\.htaccess)

BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

END WordPress

I’ve noticed that when I changed the permalinks structure through the wp admin panel that the .htaccess file changes to

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

What is wrong here? Thanks.

hello there,

first of all make sure that mod_rewrite is enabled and check again. Then add this to the top of your htaccess file : Options +FollowSymLinks and try again.

If this didn’t work, open the httpd.conf file ( wamp\bin\apache\Apache-Version\conf\httpd.conf )
Find : LoadModule rewrite_module modules/mod_rewrite.so

Replace :

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

With

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

Save the file and restart the apache server, then try again.

Goodluck

It is enough to remove the # in front LoadModule rewrite_module modules/mod_rewrite.so in Apache httpd.conf file and click Save. Then do restart all services and that’s it.