Forums

The WordPress MU forums have moved to the MultiSite forum on WordPress.org

how to hide index.php to have clean permalinks? (3 posts)

  1. xoozlez
    Member
    Posted 1 year ago #

    WP MU version: 2.8.6
    IIS 6
    Windows 2003

    hi guys,

    can anybody advise how to hide the extension 'index.php' to have a nice clean permalinks?

    currently all my blog posts is only available if index.php is inserted
    e.g.
    - http://blog.domain.com.sg/index.php/category/people
    - http://blog.domain.com.sg/index.php/2010/03/08/hello-world/

    this is my current .htaccess
    RewriteEngine On

    RewriteBase /

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

  2. tdjcbe
    Member
    Posted 1 year ago #

    Some quick google'ing pulls up a number of threads concerning mod_rewrite not being in place. Are you sure it's activated? Last time I knew, for IIS, it;s a paid upgrade that you have to install or have installed.

    edit: Found this in another thread:

    http://www.moon-blog.com/2008/05/install-wordpress-mu-on-iis-with-url-rewrite.html

  3. xoozlez
    Member
    Posted 1 year ago #

    I manage to resolve the rewrite problem hiding index.php but the problem I am facing now is all images and css styles are not showing.

    I am using Ionics Isapi Rewrite Filter and this is the rewrite write I used for IIRF.ini -

    RedirectRule ^/index\.php/(.*)$ /$1 [I,R=301]
    RewriteRule ^/(?!index\.php|wp-|xmlrpc)(.*)$ /index.php/$1 [I,L]

    Anybody can advise what should the rewrite rule be to resolve the images and css styles problem?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.