Forums

[resolved] Custom permalinks dont work unless index.php is included (5 posts)

  1. AMCD
    Member
    Posted 1 year ago #

    I have just moved my wordpress site from local dev using XAMPP to what will be our live server running Apache. Prior to move permalinks were working fine. But now I can only get them to work as below:

    Was using: /%category%/%postname%/ -worked locally
    Results: page not found

    Now using: /index.php/%category%/%postname%/
    Results: Works (mod_rewrite is working) with resulting URL.com/index.php/cat/post/

    Do I have to modify the .htaccess file? The file is currently:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Don't know why its doing this... thanks for any help!!!

  2. AMCD
    Member
    Posted 1 year ago #

    I should note that Apache is running on Windows Server 2003

  3. nathan12343
    Member
    Posted 1 year ago #

    It's a windows thing. I had the same issue the only way I solved it was to go Linux!

  4. AMCD
    Member
    Posted 1 year ago #

    Just solved it... had to do the .htaccess override for the virtual host location as well as root in the httpd.conf file

    <Directory />
    Options Indexes FollowSymLinks
    AllowOverride All
    </Directory>

  5. nathan12343
    Member
    Posted 1 year ago #

    Nice! I'll have to remember that one!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.