Htaccess 301 redirect dynamic URL

Posted by Jarede on Pro Webmasters See other posts from Pro Webmasters or by Jarede
Published on 2013-05-22T10:43:14Z Indexed on 2013/10/19 22:16 UTC
Read the original article Hit count: 232

Filed under:
|

I don't know a whole lot about .htaccess rules so forgive and help me ask the correct question.

Currently I have a .htaccess rule like:

RewriteRule ^surveys/(\S+)/directory/(\d+)/(\d+)/entry/(\d+)/?$ directories/index.cfm?sFuseAction=XXX.YYYY.ZZZZ&nDirectoryID=$2&nEntryID=$4&nCategoryID=$3&sDirectory=$1 [NC,L]

which I want to do a 301 redirect to:

RewriteRule ^(\S+)/directory/(\d+)/(\d+)/entry/(\d+)/?$     directories/index.cfm?sFuseAction=XXX.YYYY.ZZZZ&nDirectoryID=$2&nEntryID=$4&nCategoryID=$3&sDirectory=$1 [NC,L]

I'm unsure of the correct syntax to go about making these redirect correctly.

© Pro Webmasters or respective owner

Related posts about htaccess

Related posts about 301-redirect