Htaccess 301 redirect dynamic URL
- by Jarede
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.