- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘Other’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello,
Here are my problem about WordPress.
I changed my WordPress permalink from default to /%postname%/. However, none of my posts appear to be ok. They are all “page not found”. But when I change back to default permalink, its all OK again.
I’m running my WordPress in localhost (WAMP) server.
Thanks.
It’s a permission issue. WordPress can not write the .htaccess file to accommodate the URL rewrite. Make sure that WAMP has write permissions in the root of your WP install.
Hey Allen,
Thanks for that. But still in won’t work.
This is the content of my .htacccess before changing the permalink.
BEGIN WordPress
END WordPress
And when I change the permalink into /%postname%/, the file is automatically modified and here is the content of the new .htaccess file.
BEGIN WordPress
RewriteEngine On
RewriteBase /wp_projects/sample_wordpress/
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp_projects/sample_wordpress/index.php [L]
END WordPress
In the second example, put this: Options +FollowSymlinks
right above the RewriteEngine On
.
And try it out.
I just tried it but still won’t work.
BEGIN WordPress
Options +FollowSymlinks
RewriteEngine On
RewriteBase /wp_projects/sample_wordpress/
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp_projects/sample_wordpress/index.php [L]
END WordPress
Does your Apache server have the rewrite_module
on?
Thanks Senff, It works finally!
Thanks also for Alen.
This link helps me to enable the rewrite_module on my apache:
How to enable rewrite_module on apache.
Ah should have remembered that one.
If anyone is on Linux and experiencing same issue run this:
sudo a2enmod rewrite