Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading queryString ??

Status
Not open for further replies.

HaveAQuestion

Programmer
Joined
Jan 19, 2007
Messages
3
Location
BE
Hello ... I'm fairly new at working with apache ... My question is if it is possible to read the queryString in apache ? Each parameter ?

Thanks ...

Best regards,

Tom.
 
Hi

Apache does everything to be possible, but Flash must be able to access the environment variables. Better ask more in the forum250 ( Macromedia Flash ), they know more about Flash capabilities.

Feherke.
 
Yes ... I know ...

It's an external developed flash component ... So I don't have the source ....

 
Hi

HaveAQuestion said:
The parameter "lang" can have different values and for the value FR I want to redirect it to another page.
Oops, I missed the redirect part.

That is indeed pure Apache task, not related to the Flash itself. For example, using the [tt]mod_rewrite[/tt] :
Code:
RewriteEngine on
RewriteCond %{QUERY_STRING} \blang=(fr)\b
RewriteRule \.swf$ [URL unfurl="true"]http://google.com/search?q=%1[/URL] [NC]
If the query string contains the lang parameter with a two character code,and the request is for a file with .swf extension, then redirects to Google to search for that language code. Put this code in a .htaccess file in the directory on where it applies.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top