[resolved] IIS7 Redirect From old Folder? (2 posts)

  1. CyberWoolf
    Posted 5 years ago #

    I was helping someone with their WP and moved it from a folder (/new) to the root directory. Since the pages with /new are indexed in the search engines, how do I do a 301 redirect - but keeping the structure without the /new??

    domain.com/new/pagename to domain.com/pagename

    It's a shared windows server with web.config so I can't access the control panel there. I've never ever worked with WP on IIS so I am at a complete loss!! I had searched google and nothing is working :-/

  2. CyberWoolf
    Posted 5 years ago #

    <rule name="Move new to rootdir" stopProcessing="true">
    <match url="^new/(.*)/" />
    <action type="Redirect" url="{R:1}" redirectType="Permanent" />

Topic Closed

This topic has been closed to new replies.

About this Topic