Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Wordpress URL rewrites

$
0
0

Hi

I am trying to eliminate the /index.php/ that appears in Wordpress post names, but I'm running into a problem 

I have the URL Rewrite module installed on my server, and I have a web.config file with the following text:

<?xml version="1.0"?>
<configuration>
<system.webServer>
<rewrite>
 <rules>
 <rule name="Main Rule" stopProcessing="true">
 <match url=".*" />
 <conditions logicalGrouping="MatchAll">
 <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
 <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
 </conditions>
 <action type="Rewrite" url="index.php" />
 </rule>
 </rules>
</rewrite>
</system.webServer>
</configuration>

Most of this was just lifted straight from here:
http://www.iis.net/learn/extensions/url-rewrite-module/enabling-pretty-permalinks-in-wordpress

To some extent, this has worked great. For example, posts now appear as mysite.com/blog/post-name (instead of mysite.com/blog/index.php/post-name).

However... now the blog homepage (mysite.com/blog) gives me a 404 error. The strange thing is that if I go to mysite.com/blog/index.php it works just fine. But obviously something is going wrong with the rewrites on the blog homepage.

I would appreciate any help I can get as I have been tearing my hair out for the past few hours!

Many thanks
Van


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>