URL Rewrite ? - Wordpress

Discussion in 'General troubleshooting' started by maric01, Jan 10, 2015.

  1. Hi,

    I'm a longtime customer at Winhost and I would like to know if it'S possible to do what I need. I tried a couple of things but was never able to make it work.

    I have a regular website at the root using asp.net and IIS 7.5.
    I have also installed wordpress on the default /wordpress folder.

    I would like to hide/remove the /wordpress from all the page on the wordpress website. www.ADomaineName.com/wordpress to become www.ADomaineName.com. It is possible and how can I do that ?


    Last edited by a moderator: Oct 14, 2015
  2. Elshadriel

    Elshadriel Winhost Staff

    Last edited by a moderator: Oct 14, 2015
  3. There's no default option in WordPress permalinks settings to remove the home directory from the URL, so you'd have to do what @Elshadriel suggested and check out the code used when hosting domains in subdirectories. That should get you started.

    This may be of some help too - it's the web.config lines necessary to use "post name" URLs in WordPress on Windows servers. So it's a rewrite, though it doesn't change the path, as you're trying to do:
    <?xml version="1.0" encoding="UTF-8"?>
            <rule name="wordpress" patternSyntax="Wildcard">
            <match url="*"/>
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
            <action type="Rewrite" url="index.php"/>

Share This Page