Title: apache .htaccess permalink problem
Last modified: August 18, 2016

---

# apache .htaccess permalink problem

 *  [rogopag](https://wordpress.org/support/users/rogopag/)
 * (@rogopag)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/apache-htaccess-permalink-problem/)
 * I upgraded tonight to the “Duke” release – it is very fine ;-)) but I have problems
   with permalinks wich I didn’t have before.
 * I have Debian Sarge machine running apache2.
 * I want to customise the permalink stucture with the following:
 * `/%year%/%monthnum%/%day%/%postname%/`
 * I create a .htaccess file that in the /wp root directory wich looks like:
    ————————-
   <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wp/ RewriteCond %{REQUEST_FILENAME}!-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wp/index.php/%year%/%monthnum%/%
   day%/%postname%/ </IfModule> ———————- When I use the links I get apache2 404 
   error.
 * I checked with info.php and mod_rewrite is doing fine, so
    i checked apache.
 * This is my site conf in apache:
    —————————— DocumentRoot /home/rogopag/www/ <
   Directory /> Options FollowSymLinks AllowOverride None </Directory< <Directory/
   var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,
   deny allow from all # This directive allows us to have apache2’s default start
   page # in /apache2-default/, but still have / go to the right place RedirectMatch
   ^/$ /apache2-default/ </Directory>
 *  ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory “/usr/lib/cgi-bin”> AllowOverride
   None Options ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow
   from all </Directory>
 *  ErrorLog /var/log/apache2/error.log
 *  # Possible values include: debug, info, notice, warn, error, crit,
    # alert,
   emerg. LogLevel warn
 *  CustomLog /var/log/apache2/access.log combined
    ServerSignature On
 *  Alias /doc/ “/usr/share/doc/”
    <Directory “/usr/share/doc/”> Options Indexes
   MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow
   from 127.0.0.0/255.0.0.0 ::1/128 </Directory>
 * </VirtualHost>
    ——————————–
 * I tried to change the root and var directory settings to: AllowOverride All, 
   but it gets me error 400 instead of 404.
 * Do someone have any clue about this problem?
 * Thanks. happy new year.
    riccardo

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

 *  Thread Starter [rogopag](https://wordpress.org/support/users/rogopag/)
 * (@rogopag)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/apache-htaccess-permalink-problem/#post-310230)
 * ps: sorry for the < in the post…
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/apache-htaccess-permalink-problem/#post-310231)
 * Re: p.s. – see the instructions about posting code, below the text input area
   e.g. `<li>list</li>`
 * And Ryan just posted some new fixes for the permalinks
    [http://wordpress.org/support/topic/54340?replies=10#post-298609](http://wordpress.org/support/topic/54340?replies=10#post-298609)
   Maybe it can help you, too.

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

The topic ‘apache .htaccess permalink problem’ is closed to new replies.

## Tags

 * [.htacces](https://wordpress.org/support/topic-tag/htacces/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 2 replies
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [20 years, 5 months ago](https://wordpress.org/support/topic/apache-htaccess-permalink-problem/#post-310231)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
