index.php automatically being added to url
-
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 WordPressand putting it in the /blog/ directory. I did that but it didn’t seem to change anything.
Please help.
- The topic ‘index.php automatically being added to url’ is closed to new replies.