Title: httpd rewriting for permalinks
Last modified: August 19, 2016

---

# httpd rewriting for permalinks

 *  [DrReaper](https://wordpress.org/support/users/drreaper/)
 * (@drreaper)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/)
 * Hi guys and gals,
    I am trying to figure out permalinks! Ouch… I have a windows
   2003 server, the start of my problems. Mod rewrite seems much better but this
   is the world I live in. My server host game me a blank httpd.ini and it’s up 
   to me to make it work. I just want to blog.
 * This is what works:
    [http://gamersnews.com/news/?p=5](http://gamersnews.com/news/?p=5)
 * This is what i want to work:
    [http://gamersnews.com/news/rush-la-villa-strangiato/](http://gamersnews.com/news/rush-la-villa-strangiato/)
 * I am not sure how to write the code to make it happen.
 * This is what I have in my httpd.ini and I am sure it’s wrong.
 *     ```
       RewriteEngine on
       RewriteBase /
   
       #Exclude javascripts/stylesheets/images etc from rewriting
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
   
       #Perform rewriting
       RewriteRule ^(.*)$ index.php?p=$1 [NC,L]
       ```
   
 * Any help would be great.

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/page/2/?output_format=md)

 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957282)
 * Try and install this plugin see if it solves your problem
    [http://wordpress.org/extend/plugins/isapi-rewriter/](http://wordpress.org/extend/plugins/isapi-rewriter/)
 * keep us posted if it works so can help other window users.
 *  Thread Starter [DrReaper](https://wordpress.org/support/users/drreaper/)
 * (@drreaper)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957289)
 * Hi govpatel,
 * Ok I got the plugin in place but it says I need to edit the .htaccess file. I
   don’t have one. Does anyone know what directory it’s supposed to be in?
 *  [arkgroup](https://wordpress.org/support/users/arkgroup/)
 * (@arkgroup)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957300)
 * DrReaper,
 * Try to place .htaccess file into root folder of your wordpress.
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957301)
 * it is a hidden file allow hidden files to be seen
 *  Thread Starter [DrReaper](https://wordpress.org/support/users/drreaper/)
 * (@drreaper)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957309)
 * It didn’t work. I am assuming the root would be the folder I installed wordpress
   into news.
 * The server host provided me a httpd.ini file not a .htaccess file. I am not sure
   why. You would think someone ran into this problem before me. I am not reinventing
   the wheel here.
 *  [arkgroup](https://wordpress.org/support/users/arkgroup/)
 * (@arkgroup)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957316)
 * You need to create .htaccess file and place it into wordpress directory.
    [](http://wordpress.org/extend/plugins/isapi-rewriter/faq/)
 * Please make sure ISAPI Rewrite 3 installed on the server.
 *  [arkgroup](https://wordpress.org/support/users/arkgroup/)
 * (@arkgroup)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957318)
 * Or you may try to insert such code into your httpd.ini file:
 * RewriteEngine On
    RewriteBase /news/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond%{
   REQUEST_FILENAME} !-d RewriteRule .* /index.php [L]
 *  Thread Starter [DrReaper](https://wordpress.org/support/users/drreaper/)
 * (@drreaper)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957324)
 * My server company is on weekend support and they say we don’t have ISAPI Rewrite
   3 on the server but if I ad code to .htaccess it will work. I don’t think they
   know what they are talking about.
 * Anyway I am going to a BBQ so I will have to work on this later. Thanks for helping.
   I will be back to this later.
 *  Thread Starter [DrReaper](https://wordpress.org/support/users/drreaper/)
 * (@drreaper)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957391)
 * My .htaccess is in my news directory and it contains
 *     ```
       RewriteEngine On
       RewriteBase /news/
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule .* /index.php [L]
       ```
   
 * It doesn’t work, i am not sure why.
 *  [GRAQ](https://wordpress.org/support/users/graq/)
 * (@graq)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957395)
 * I’m not really a windows or apache user much any more, but should it not hit 
   the index.php in the install dir?
 * That is, the last line should be: RewriteRule .* /news/index.php [L]
 * Have you read up in the codex?
    [http://codex.wordpress.org/Using_Permalinks](http://codex.wordpress.org/Using_Permalinks)
 *  [arkgroup](https://wordpress.org/support/users/arkgroup/)
 * (@arkgroup)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957405)
 * **GRAQ,**
 * Yep, you’re right.
 * **DrReaper,**
 * Try this one:
 * > RewriteEngine On
   >  RewriteBase /news/ RewriteRule ^index\.php$ – [L] RewriteCond%{
   > REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /news/
   > index.php [L]
 *  Thread Starter [DrReaper](https://wordpress.org/support/users/drreaper/)
 * (@drreaper)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957451)
 * I tried
 *     ```
       RewriteEngine On
       RewriteBase /news/
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /news/index.php [L]
       ```
   
 * and I tried
 *     ```
       RewriteEngine On
       RewriteBase /news/
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule .* /news/index.php [L]
       ```
   
 * They didn’t work.
 * When I setup the permalinks I took
    `/index.php/%year%/%monthnum%/%day%/%postname%/`
 * Then I did a custom Custom Structure and removed the year, month, day, leaving
   just `/%postname%/`
 * I am not sure if that is the reason it still isn’t working.
 *  Thread Starter [DrReaper](https://wordpress.org/support/users/drreaper/)
 * (@drreaper)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957452)
 * Ok my server got back to me and they now tell me we have ISAPI_Rewrite version
   2.0
    I guess this is the monkey wrench that has been in the machine.
 *  [arkgroup](https://wordpress.org/support/users/arkgroup/)
 * (@arkgroup)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957453)
 * DrReaper,
 * May be something’s wrong with isapi-rewrite. Try to make a simple rule and check
   whether it’s working or not.
 *  Thread Starter [DrReaper](https://wordpress.org/support/users/drreaper/)
 * (@drreaper)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/#post-1957454)
 * Hi Arkgroup,
    I know enough about coding to be dangerous. I don’t know how to
   write a simple rule for ISAPI_Rewrite 2.0

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/page/2/?output_format=md)

The topic ‘httpd rewriting for permalinks’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 19 replies
 * 4 participants
 * Last reply from: [arkgroup](https://wordpress.org/support/users/arkgroup/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/httpd-rewriting-for-permalinks/page/2/#post-1957481)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
