• 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

    This is what i want to work:
    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)
  • Try and install this plugin see if it solves your problem
    http://wordpress.org/extend/plugins/isapi-rewriter/

    keep us posted if it works so can help other window users.

    Thread Starter DrReaper

    (@drreaper)

    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?

    DrReaper,

    Try to place .htaccess file into root folder of your wordpress.

    it is a hidden file allow hidden files to be seen

    Thread Starter DrReaper

    (@drreaper)

    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.

    You need to create .htaccess file and place it into wordpress directory.

    Please make sure ISAPI Rewrite 3 installed on the server.

    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

    (@drreaper)

    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

    (@drreaper)

    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.

    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

    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

    (@drreaper)

    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

    (@drreaper)

    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.

    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

    (@drreaper)

    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)
  • The topic ‘httpd rewriting for permalinks’ is closed to new replies.