Post Reply 
Redirecting URLs using variables
Feb. 16, 2013, 05:33 AM (This post was last modified: Feb. 17, 2013 07:44 PM by JJoe.)
Post: #4
RE: Redirecting URLs using variables
(Feb. 15, 2013 05:37 PM)zoltan Wrote:  I suppose I could keep adding them for each new link style.

Or maybe

Code:
www.youtube.com/user/([^?]+)\1      $RDIR(http://www.youtube.com/user/\1/videos?view=0)

?

(Feb. 15, 2013 05:37 PM)zoltan Wrote:  Several things I don't understand:
Why does the AND symbol separated by spaces cause the text after "user/" to be matched?

Why would filling the variable be in question at all? I thought it would only be triggered if text existed after "user/". If the text is there, how can it not be seen?

Since this goes in the Exceptions-U list, I'm confused about why you mentioned "Depending on where the code is." Lists don't search through html & css like a filter, do they? I thought it would only catch the URL if it were actually requested.

It is as Scott Lemmon wanted or left it. The spaces are not needed, btw.

A trailing \1 used in the matching expression of a web page filter captures code. A trailing \1 in a URL match or list entry, called from a URL match, does not.

Exceptions-U is called by the URL match of a header filter. It can catch requested URLs. It does not filter html.

Lists called by the matching expressions of web page filters can search through html, css, etc.

HTH

Edit: added , called from a URL match,
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Redirecting URLs using variables - zoltan - Feb. 14, 2013, 10:59 PM
RE: Redirecting URLs using variables - JJoe - Feb. 15, 2013, 03:29 AM
RE: Redirecting URLs using variables - zoltan - Feb. 15, 2013, 05:37 PM
RE: Redirecting URLs using variables - JJoe - Feb. 16, 2013 05:33 AM
RE: Redirecting URLs using variables - zoltan - Feb. 17, 2013, 06:31 AM
RE: Redirecting URLs using variables - JJoe - Feb. 17, 2013, 07:37 PM
RE: Redirecting URLs using variables - zoltan - Feb. 18, 2013, 04:26 AM
RE: Redirecting URLs using variables - JJoe - Feb. 18, 2013, 04:13 PM

Forum Jump: