Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

Struggling with URL Redirect

$
0
0

Hello-

I have been struggling with trying to get the URL redirect to work in web.config

Could someone please advise me on the correct way to write this.
Basically we have a directory full of pdf files that are now in a different directory since we switched to Drupal.
This wouldn't be an issue except many of the pdfs have embedded links that point to the full path of the old directory.

So i thought i could redirect the users.
the old directory is foia_files

before they would go to a URL like this.

www.example.com/foia_files/WP-01-001.pdf
now that same document lives in this folder
www.example.com/sites/default/files/document-library-files/2013/WP-01-00...

I tried this, but notice nothing.

<rule name="Rewrite FOIA_FILES to DOCUMENT_LIBRARY" stopProcessing="true"><match url="^foia_files/([_0-9a-z-])" /><action type="Redirect" url="/sites/default/files/document-library-files/2013/{R:1}" /></rule>

IIS 7.5 Windows Server 2008

Any help would be appreciated.


Viewing all articles
Browse latest Browse all 2482

Latest Images

Trending Articles



Latest Images