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.