• I recently moved my site from a dedicated Windows 2008 server to Rackspace Cloud. Most of the website is in asp classic, so it needs a windows environment, but the /blog/ directory is a wordpress blog in php of course. I am using WordPress 2.9.2.

    Everything on the blog is basically working, however, the blog automatically adds “index.php” to the url. If you type in https://www.site.com/blog/, the web browser changes the url to https://www.site.com/blog/index.php. Individual blog posts are given the url https://www.site.com/blog/index.php?p=8147 even though I have set the Permalink structure to be /?p=%post_id%

    Originally the site did not have an htaccess file and this was happening. This page:

    https://codex.www.ads-software.com/Using_Permalinks#Creating_and_editing_.28.htaccess.29

    Suggests creating an .htaccess file with the content:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    ewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    and putting it in the /blog/ directory. I did that but it didn’t seem to change anything.

    Please help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    It looks like you may have a typo in your .htaccess file. ewriteRule . /index.php [L] should be RewriteRule . /index.php [L]

    Thread Starter arista80

    (@arista80)

    Thanks for the response. That’s not it though. That was just because I accidentally deleted that letter when posting it here.

    Moderator James Huff

    (@macmanx)

    Try this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    
    # END WordPress
    Thread Starter arista80

    (@arista80)

    That’s not working either.

    Let me give some background that may be on a related issue. I had a problem when I originally installed this blog. I tried setting up a blank wordpress blog as a test and the same problem happened. The main page would not load. In firefox, I get the error:

    The page isn’t redirecting properly.
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    The only way I found to solve it is to use the plugin: “Disable Canonical URL Redirection” I assume that having to use this plugin to get WordPress to function is not normal, but I don’t know what I am doing wrong.

    Moderator James Huff

    (@macmanx)

    What are your two URLs at Settings/General and what’s your permalink structure?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘index.php automatically being added to url’ is closed to new replies.