: Htaccess 301 redirect dynamic URL 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/
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=&nEntryID=&nCategoryID=&sDirectory= [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=&nEntryID=&nCategoryID=&sDirectory= [NC,L]
I'm unsure of the correct syntax to go about making these redirect correctly.
More posts by @Pierce454
1 Comments
Sorted by latest first Latest Oldest Best
If you want to do a 301 redirect you will have to use the full URI path including the FQDN and protocol. Like so:
RewriteRule ^(S+)/directory/(d+)/(d+)/entry/(d+)/?$ www.example.com/directories/index.cfm?sFuseAction=XXX.YYYY.ZZZZ&nDirectoryID=&nEntryID=&nCategoryID=&sDirectory= [NC,L]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.