Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9219571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:08:47+00:00 2026-06-18T03:08:47+00:00

Flash movies are called based on dynamic links on mypage.php . mypage.php has the

  • 0

Flash movies are called based on dynamic links on mypage.php. mypage.php has the flash player embedded. The links look like mypage.php?moviefolder=folder1/folder2&swfTitle=sometitle.swf. mypage.php is parsed on each link click (per the href). Folder2 is always the same but movieTitle.swf is dynamic. Sometimes subfolders will be called (folder2/subfolder2/sometitle.swf).

Can mod_rewrite allow the query string to reflect folder2 but instead silently serve folder3 as well as occasional subfolders? I would place all files in folder3. The goal is to have the user not know where the swfs are. Thanks in advance again!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:08:48+00:00Added an answer on June 18, 2026 at 3:08 am

    Using a RewriteCond to match the contents of the query string (since they are not read in a RewriteRule directive, you can extract swfTitle=sometitle.swf and substitute folder1/folder3 for folder1/folder2 in the moviefolder.

    This will use a regex pattern like ([^&]+) to match everything up to the next & (which denotes another query param).

    # Capture everything after folder2 into %1
    RewriteCond %{QUERY_STRING} moviefolder=folder1/folder2([^&]+) [NC]
    # Capture everything in the swfTitle param into %2
    # Both conditions must be matched...
    RewriteCond %{QUERY_STRING} swfTitle=([^&]+) [NC]
    # Then silently rewrite mypage.php to substitute folder3,
    # and pass in the original swfTitle captured above
    RewriteRule ^mypage\.php$ mypage.php?moviefolder=folder1/folder3%1&swfTitle=%2 [L] 
    

    Hopefully, you won’t get a rewrite loop, since the rewritten folder1/folder3 won’t match the second time. [NC] allows for a case-insensitive match.

    I did manage to successfully test this over at http://htaccess.madewithlove.be/, using the sample input:

    http://example.com/mypage.php?swfTitle=thetitle.swf&moviefolder=folder1/folder2/thing
    ---> http://example.com/mypage.php?moviefolder=folder1/folder3/thing&swfTitle=thetitle.swf
    
    http://example.com/mypage.php?moviefolder=folder1/folder2/thing999zzz&swfTitle=thetitle.swf
    ---> http://example.com/mypage.php?moviefolder=folder1/folder3/thing999zzz&swfTitle=thetitle.swf
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got two flash movies on a page. Using the Flash IDE I'd like
i have a flash video called abc.swf that i would like to play when
I have a folder on my site for caching large flash movies and I
What technology are better (robust, stable, speed) for rich web app with flash movies,
What's an easy way to see the trace() output of Flash/Flex movies when running
I have a flash app that plays movies. It loads subtitles and subtitle times
My Flash movie would like communicate with MySQL server to fetch and save data
I have a Flash movie which has a number of actionscript 2 functions which
I have a flash movie that dynamically generates urls based on some params. Snip:
Here's the challenge: I have a Flash movie which will be embedded in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.