Custom .htaccess Redirects? Rewrite Engine

Posted on 2009-12-20
Last Modified: 2012-05-08
I am trying to redirect the following URL:

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?
Question by:Sussex_Chris
    1 Comment
    LVL 1

    Accepted Solution

    Got it working with:
    RewriteRule ^mov/([0-9]+).swf$ test.php?campaign=$1 [L]

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Suggested Solutions

    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    The viewer will learn how to dynamically set the form action using jQuery.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now