Title: Pretty Permalink trouble
Last modified: August 19, 2016

---

# Pretty Permalink trouble

 *  Resolved [finkyfeke](https://wordpress.org/support/users/finkyfeke/)
 * (@finkyfeke)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/pretty-permalink-trouble/)
 * Hi,
    I’m using WordPress on an Ubuntu/Apache/MySQL/PHP server. For the “Pretty
   Permalinks,” it uses mod_rewrite. However, it shows a 404 error when one of these
   links is visited.
 * WordPress generated its own .htaccess file, so it should be correct, but I’ll
   post it anyway:
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /enl/
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /enl/index.php [L]
       </IfModule>
       # END WordPress
       ```
   
 * It should turn /enl/?p=123 into /enl/categories/post-name but it isn’t doing 
   anything. I even tried restarting the server, but still nothing.
 * I’m sure that mod_rewrite is enabled; it shows up in phpinfo() under apache2handler
   Loaded Modules.
 * Any help is much appreciated.
    Thanks a lot in advance, –Richard

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

 *  [thisisedie](https://wordpress.org/support/users/thisisedie/)
 * (@thisisedie)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/pretty-permalink-trouble/#post-842081)
 * I use Godaddy and when I set pretty permalinks it takes about an hour or so before
   the links stop giving a 404 error. Something about it taking a while for the .
   htaccess changes to take effect. Might be the same in your case. Give it an hour
   an see what happens.
 *  Thread Starter [finkyfeke](https://wordpress.org/support/users/finkyfeke/)
 * (@finkyfeke)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/pretty-permalink-trouble/#post-842086)
 * Thanks for your reply, thisisedie, but I’ve been having this problem since yesterday.
   About 18 hours. So I don’t think waiting is the answer. Also, it’s my own server,
   and I restarted it, so that should update everything shouldn’t it?
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/pretty-permalink-trouble/#post-842132)
 * There may be an error in the permalink format you are using. It should be:
 * /%category%/%postname%/
 *  Thread Starter [finkyfeke](https://wordpress.org/support/users/finkyfeke/)
 * (@finkyfeke)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/pretty-permalink-trouble/#post-842149)
 * /%category%/%postname%/ is the exact permalink structure I’m using. I really 
   can’t think what I’m doing wrong.
 * I installed the AskApache RewriteRules Viewer, and it tells me the following…
 *     ```
       > Permalink: /%category%/%postname%/
       > Writable .htaccess file found
       > mod_rewrite found
       > Not using pathinfo style index permalinks
       > Using mod_rewrite permalinks
       ```
   
 * …which all sounds fine to me, but it still doesn’t work.
 * Does anybody have any ideas? I feel like I’ve tried everything, and I don’t want
   to have to settle for /?p=123
 * Thanks
    –Richard
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/pretty-permalink-trouble/#post-842174)
 * [http://codex.wordpress.org/Using_Permalinks#Using_.22Pretty.22_permalinks](http://codex.wordpress.org/Using_Permalinks#Using_.22Pretty.22_permalinks)
 *  Thread Starter [finkyfeke](https://wordpress.org/support/users/finkyfeke/)
 * (@finkyfeke)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/pretty-permalink-trouble/#post-842176)
 * Solved.
    The problem was in the apache2.conf file. All my directories were set
   to AllowOverride None. After changing them to AllowOverride All, I got a 500 
   Internal Server Error. So I messed around with the .conf files, and I finally
   discovered that it was the .htaccess files causing the error, not the .conf files.
   Deleting the .htaccess files removed the 500 Error. Then I went back to wp-admin
   and had WordPress generate a fresh .htaccess, and everything now works perfectly.
 * # Edit #
    iridiax – I had the browser window open for a while, and I didn’t refresh
   before posting this reply. It’s a shame I didn’t see your link, it lists AllowOverride
   All in the requirements. Still, thanks a lot for trying to help.
 *  [jesseg5](https://wordpress.org/support/users/jesseg5/)
 * (@jesseg5)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/pretty-permalink-trouble/#post-842225)
 * Yeah this sucks for me because I am hosted by Godaddy and only they can change
   it. I called them and asked if they could check it out but they said AllowOverride
   was active. However I am not sure thats the case.
 * Would you mind posting what your new .htaccess file looks like? I am curious 
   to see what it changed based on your old file above.
 * Thanks finkyfeke
 *  Thread Starter [finkyfeke](https://wordpress.org/support/users/finkyfeke/)
 * (@finkyfeke)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/pretty-permalink-trouble/#post-842254)
 * My .htaccess looks pretty much the same:
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /enl/
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /enl/index.php [L]
       </IfModule>
   
       # END WordPress
       ```
   

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

The topic ‘Pretty Permalink trouble’ is closed to new replies.

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)
 * [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/)
 * 8 replies
 * 4 participants
 * Last reply from: [finkyfeke](https://wordpress.org/support/users/finkyfeke/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/pretty-permalink-trouble/#post-842254)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
