Title: adrianhon's Replies | WordPress.org

---

# adrianhon

  [  ](https://wordpress.org/support/users/adrianhon/)

 *   [Profile](https://wordpress.org/support/users/adrianhon/)
 *   [Topics Started](https://wordpress.org/support/users/adrianhon/topics/)
 *   [Replies Created](https://wordpress.org/support/users/adrianhon/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/adrianhon/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/adrianhon/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/adrianhon/engagements/)
 *   [Favorites](https://wordpress.org/support/users/adrianhon/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Permalinks don’t work – have tried many things](https://wordpress.org/support/topic/permalinks-dont-work-have-tried-many-things/)
 *  Thread Starter [adrianhon](https://wordpress.org/support/users/adrianhon/)
 * (@adrianhon)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/permalinks-dont-work-have-tried-many-things/#post-262143)
 * Ah! I managed to figure out the problem, so I’ll recount it here:
 * If you have having this problem, your domain has likely been set by Dreamhost
   to run PHP as CGI. They do this as a security measure, but it’s a real pain in
   the ass. Go to the control panel in Dreamhost and turn it off. When you turn 
   it off, Dreamhost will change the chmod settings of all your files – they mean
   well, but they don’t tell you, and that’s another pain.
 * Now, open up an FTP client and chmod *all* of the files in the wordpress/ directory
   to 755, including all subdirectories and files inside.
 * Make sure that your .htaccess file is in the same place as your index.php file–
   this may not be the same directory as wordpress/! Do not make the same mistake
   I did and put it in your wordpress directory – it’s not supposed to be there.
   The .htaccess file should be chmoded 666.
 * This *will* make permalinks work.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Permalinks don’t work – have tried many things](https://wordpress.org/support/topic/permalinks-dont-work-have-tried-many-things/)
 *  Thread Starter [adrianhon](https://wordpress.org/support/users/adrianhon/)
 * (@adrianhon)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/permalinks-dont-work-have-tried-many-things/#post-261938)
 * Here is my .htaccess file. This is for /%year%/%monthnum%/%day%/%postname%/ :
 * `<IfModule mod_rewrite.c><br />
    RewriteEngine On<br /> RewriteBase /<br /> RewriteCond%{
   REQUEST_FILENAME} -f [OR]<br /> RewriteCond %{REQUEST_FILENAME} -d<br /> RewriteRule
   ^.*$ - [S=38]<br /> RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?&
   feed=$1 [QSA,L]<br /> RewriteRule ^(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed
   =$1 [QSA,L]<br /> RewriteRule ^page/?([0-9]{1,})/?$ /index.php?&paged=$1 [QSA,
   L]<br /> RewriteRule ^comments/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed
   =$1&withcomments=1 [QSA,L]<br /> RewriteRule ^comments/(feed|rdf|rss|rss2|atom)/?
   $ /index.php?&feed=$1&withcomments=1 [QSA,L]<br /> RewriteRule ^comments/page/?([
   0-9]{1,})/?$ /index.php?&paged=$1 [QSA,L]<br /> RewriteRule ^author/([^/]+)/feed/(
   feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]<br /> RewriteRule
   ^author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2[
   QSA,L]<br /> RewriteRule ^author/([^/]+)/page/?([0-9]{1,})/?$ /index.php?author_name
   =$1&paged=$2 [QSA,L]<br /> RewriteRule ^author/([^/]+)/?$ /index.php?author_name
   =$1 [QSA,L]<br /> RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed
   |rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]<
   br /> RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?
   $ /index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]<br /> RewriteRule ^([
   0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /index.php?year=$1&monthnum
   =$2&day=$3&paged=$4 [QSA,L]<br /> RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{
   1,2})/?$ /index.php?year=$1&monthnum=$2&day=$3 [QSA,L]<br /> RewriteRule ^([0-
   9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum
   =$2&feed=$3 [QSA,L]<br /> RewriteRule ^([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|
   rss2|atom)/?$ /index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]<br /> RewriteRule
   ^([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /index.php?year=$1&monthnum=$2&
   paged=$3 [QSA,L]<br /> RewriteRule ^([0-9]{4})/([0-9]{1,2})/?$ /index.php?year
   =$1&monthnum=$2 [QSA,L]<br /> RewriteRule ^([0-9]{4})/feed/(feed|rdf|rss|rss2
   |atom)/?$ /index.php?year=$1&feed=$2 [QSA,L]<br /> RewriteRule ^([0-9]{4})/(feed
   |rdf|rss|rss2|atom)/?$ /index.php?year=$1&feed=$2 [QSA,L]<br /> RewriteRule ^([
   0-9]{4})/page/?([0-9]{1,})/?$ /index.php?year=$1&paged=$2 [QSA,L]<br /> RewriteRule
   ^([0-9]{4})/?$ /index.php?year=$1 [QSA,L]<br /> RewriteRule ^([0-9]{4})/([0-9]{
   1,2})/([0-9]{1,2})/([^/]+)/trackback/?$ /index.php?year=$1&monthnum=$2&day=$3&
   name=$4&tb=1 [QSA,L]<br /> RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([
   ^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&
   name=$4&feed=$5 [QSA,L]<br /> RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([
   ^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&name=
   $4&feed=$5 [QSA,L]<br /> RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([
   ^/]+)/page/?([0-9]{1,})/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&paged
   =$5 [QSA,L]<br /> RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)(/[
   0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA,L]<br /
   > RewriteRule ^([0-9]{4})/([0-9]{1,2})/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?
   $ /index.php?year=$1&monthnum=$2&feed=$4&name=$3 [QSA,L]<br /> RewriteRule ^([
   0-9]{4})/([0-9]{1,2})/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&
   monthnum=$2&feed=$4&name=$3 [QSA,L]<br /> RewriteRule ^([0-9]{4})/([0-9]{1,2})/([
   ^/]+)/page/?([0-9]{1,})/?$ /index.php?year=$1&monthnum=$2&name=$3&paged=$4 [QSA,
   L]<br /> RewriteRule ^([0-9]{4})/([0-9]{1,2})/([^/]+)(/[0-9]+)?/?$ /index.php?
   year=$1&monthnum=$2&name=$3&page=$4 [QSA,L]<br /> RewriteRule ^([0-9]{4})/([0-
   9]{1,2})/([^/]+)/trackback/?$ /index.php?year=$1&monthnum=$2&tb=1&name=$3 [QSA,
   L]<br /> RewriteRule ^([0-9]{4})/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.
   php?year=$1&feed=$3&name=$2 [QSA,L]<br /> RewriteRule ^([0-9]{4})/([^/]+)/(feed
   |rdf|rss|rss2|atom)/?$ /index.php?year=$1&feed=$3&name=$2 [QSA,L]<br /> RewriteRule
   ^([0-9]{4})/([^/]+)/page/?([0-9]{1,})/?$ /index.php?year=$1&name=$2&paged=$3 [
   QSA,L]<br /> RewriteRule ^([0-9]{4})/([^/]+)(/[0-9]+)?/?$ /index.php?year=$1&
   name=$2&page=$3 [QSA,L]<br /> RewriteRule ^([0-9]{4})/([^/]+)/trackback/?$ /index.
   php?year=$1&tb=1&name=$2 [QSA,L]<br /> RewriteRule ^(.*)$ /wp-htaccess.php [L]
   <br /> </IfModule>

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