Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 300
  • Last Modified:

Custom .htaccess Redirects? Rewrite Engine

I am trying to redirect the following URL:

http://mysite.com/mov/examplename.swf
To:
http://mysite.com/view.php?name=examplename

I have tried the following but it will not work:

RewriteEngine On
RewriteRule ^mov/([^/]*)\.swf view.php?name=$1 [L]

Can anyone see where I have gone wrong here? My .htaccess skills are not great but I'm pretty sure that should work?
0
Sussex_Chris
Asked:
Sussex_Chris
1 Solution
 
Sussex_ChrisAuthor Commented:
Got it working with:
RewriteRule ^mov/([0-9]+).swf$ test.php?campaign=$1 [L]
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now