Title: Permalink issues &#8211; 404 errors and out of ideas
Last modified: August 21, 2016

---

# Permalink issues – 404 errors and out of ideas

 *  [tom0311](https://wordpress.org/support/users/tom0311/)
 * (@tom0311)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/)
 * Hi,
 * I have had my blog up and running a few days now, all going smoothly until I 
   tried to change my permalinks for SEO, as the Yoast plugin advised. I’ve selected
   the ‘month and name’ setting.
 * I have modified my /usr/share/wordpress/.htaccess file to what WordPress admin
   panel told me to. It still couldn’t write to it even though I resorted to 777
   after it kept failing. This in turn makes me doubt whether I’m even using the
   right file although it’s the only one.
 * I have mod_rewrite installed and running with apache2, which I have triple checked
   with ‘a2enmod rewrite’
 * My .htaccess file is (as directed):
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
       ```
   
 * Whenever I go to a post now I get a 404, this is the apache log snippet:
 * [Tue May 07 18:48:53 2013] [error] [client 5.65.18.60] File does not exist: /
   var/www/wordpress/2013, referer: [http://engineers-brain-dump.co.uk/](http://engineers-brain-dump.co.uk/)
 * I also get:
 * [Tue May 07 18:48:44 2013] [error] [client 5.65.18.60] PHP Warning: constant():
   Couldn’t find constant WP_CORE_UPDATE in /usr/share/wordpress/wp-admin/includes/
   update.php on line 33, referer: [http://engineers-brain-dump.co.uk/wordpress/wp-admin/options-permalink.php](http://engineers-brain-dump.co.uk/wordpress/wp-admin/options-permalink.php)
 * I’m pretty lost now, and it’s my first site so I’m new to wordpress. I’ve read
   loads of forum posts but can’t find anything I haven’t already tried. Any tips?
 * Cheers

Viewing 14 replies - 1 through 14 (of 14 total)

 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729556)
 * [http://engineers-brain-dump.co.uk/](http://engineers-brain-dump.co.uk/) is this
   your url seems as if is working fine on default setting.
 *  Thread Starter [tom0311](https://wordpress.org/support/users/tom0311/)
 * (@tom0311)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729557)
 * Yeah I changed it back to default so I could edit some posts. I’ll change it 
   back to broken for a while if you want to see it break. Any post or category 
   links break and bring a 404 error.
 * ***EDIT***
 * I’ve set it back to ‘month and name’, click any category or post and it breaks
   although the home page works.
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729561)
 * Where did you add that custom permalink did you use the one in list in Settings
   >>>> permalink if so looks like there must be problem on your settings on server
   as .htaccess file rewrites the url. when change to default .htaccess does not
   rewrite url.
 *  Thread Starter [tom0311](https://wordpress.org/support/users/tom0311/)
 * (@tom0311)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729617)
 * I used the setting ‘month and name’, and then copied the modification to my .
   htaccess file like the admin panel told me to. It couldn’t write to the file 
   so I did it manually. Restarted apache2, made sure mod_rewrite was running and
   bam, 404 🙁
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729660)
 * What ever the problem is with your .htaccess file or Mod_rewrite
 *  Thread Starter [tom0311](https://wordpress.org/support/users/tom0311/)
 * (@tom0311)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729668)
 * How can I rule out either? Any ideas? If it’s taking me to the permalink and 
   not finding the file which part is to blame?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729673)
 * That sounds like an issue with the server – maybe a problem with mod_rewrite.
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729678)
 * If you copied the code that wordpress gave you as is in .htaccess file then most
   likely is Mod_rewrite problem.Have you tried any other permalink settings like
   postname
 *  Thread Starter [tom0311](https://wordpress.org/support/users/tom0311/)
 * (@tom0311)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729684)
 * I’ve just tried postname, and I get exactly the same thing 🙁
 * > [Tue May 07 21:24:00 2013] [error] [client 5.65.18.60] File does not exist:/
   > var/www/wordpress/how-to-make-your-own-button-in-phpbb-reply-editor
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729690)
 * That means is diffidently problem with server settings for Mod_rewrite.
 *  Thread Starter [tom0311](https://wordpress.org/support/users/tom0311/)
 * (@tom0311)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729693)
 * Ok – thanks 🙂
 * I’m just looking up AllowOverride etc, my server’s httpd.conf file is blank –
   should this be the case?
 *  Thread Starter [tom0311](https://wordpress.org/support/users/tom0311/)
 * (@tom0311)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729699)
 * I’ve changed the file /etc/apache2/sites-enabled/000-default, all references 
   to AllowOverride are now ‘All’. Still no dice 🙁
 * I’ll have to keep digging for now – thanks for the pointers so far.
 *  [newfictionwriters](https://wordpress.org/support/users/newfictionwriters/)
 * (@newfictionwriters)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729736)
 * I recently switched from a drupal theme to a wordpress theme and some of my permalinks
   are sending ifo to the develop site. I least I guess thats whats happening. I
   get this message.
    Forbidden You don’t have permission to access / on this server.
 * Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument
   to handle the request.
 * ——————————————————————————–
 * Apache Server at develop.newfictionwriters.com Port 80
 * I don’t know what to do any suggestions?
 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729741)
 * **newfictionwriters**,
    By posting your question on someone’s thread, you are
   creating confusion. Please continue with your thread: [http://wordpress.org/support/topic/permalinks-147?replies=3](http://wordpress.org/support/topic/permalinks-147?replies=3)

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Permalink issues – 404 errors and out of ideas’ is closed to new replies.

## Tags

 * [apache2](https://wordpress.org/support/topic-tag/apache2/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [mod_rewrite](https://wordpress.org/support/topic-tag/mod_rewrite/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 14 replies
 * 5 participants
 * Last reply from: [Krishna](https://wordpress.org/support/users/1nexus/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/permalink-issues-404/#post-3729741)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
