0

I would like to have permalinks of the form http://localhost/mysite/sample-post/. I tried to achieve this by changing the permalink settings in the admin panel to 'Post name' from default. But this causes 404: page not found error.

I've tried with the other settings e.g., month and name, numeric etc. but all of them results in 404. The generated URL is changing according to the permalink setting though.

Clearing the cache did not help either.

Does something else need doing here ? Thanks.

Edit:

My server: lamp on ubuntu 12.4 lts

Contents of the .htaccess

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

# END WordPress
6
  • What is in your .htaccess file?
    – s_ha_dum
    Commented Jan 21, 2014 at 16:33
  • are you using wamp, xamp or a diffrent server?
    – Maartje
    Commented Jan 21, 2014 at 16:33
  • If you are using wamp, try this -> wordpress.stackexchange.com/questions/129981/…
    – Maartje
    Commented Jan 21, 2014 at 16:34
  • @Maartje, I'm using lamp
    – Raiyan
    Commented Jan 21, 2014 at 18:50
  • Have you gone through all the helpful information in the documentation for setting up permalinks?
    – t31os
    Commented Jan 21, 2014 at 18:51

1 Answer 1

1

There are several possibilities: you may need to enable mod_rewrite on the Ubuntu server or check/fix permissions to allow Wordpress to write to the .htaccess file.

Best thing to do is read http://codex.wordpress.org/Using_Permalinks and work through suggestions.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.