Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RULE] Redirect of Youtube #13

Open
GoogleCodeExporter opened this issue Apr 23, 2015 · 4 comments
Open

[RULE] Redirect of Youtube #13

GoogleCodeExporter opened this issue Apr 23, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

Hello,

i am kinda new to this tool but i like it already. It does nearly what i want 
but i guess i am simple to stupid the get it done correctly. My problem is i 
have currently a redirect running which replaces all www.youtube.com URLS to 
us.www.youtube.com

The problem is if i open external webpages (like facebook) where embed Youtube 
video are included it redirect the video also and this ends into a internal 
server error. 

So is there a way to redirect only Links in my address bar? No matter if its an 
url typed by hand or a link i clicked? And nothing else? I would be really 
happy if you or someone else can help me with this issue :) - thank you in 
advance

Original issue reported on code.google.com by [email protected] on 1 Apr 2012 at 4:23

Attachments:

@GoogleCodeExporter
Copy link
Author

I doubt if you made a mistake in your description above, as us.www.youtube.com 
has no DNS record (IPv4/IPv6).

However, I've composed a rule according to your description to redirect 
www.youtube.com to us.www.youtube.com. I assumed all embedded videos of youtube 
are in the form of http://www.youtube.com/embed/ or 
https://www.youtube.com/embed/, which may be biased.

Please tell me if it works.

Original comment by [email protected] on 1 Apr 2012 at 4:52

Attachments:

@GoogleCodeExporter
Copy link
Author

Hi,

And no its not mistake this us.www.youtube.com is fine i have a DNS server who 
can handle it :). Back to the script with this version still have the same any 
kind of embed Youtube Vids e.g. on Facebook does not work. And for me it looks 
like they gets still redirected to the us.www. Version which should not happens?

Regards - and thank you for the really fast answer above.

Original comment by [email protected] on 1 Apr 2012 at 8:58

@GoogleCodeExporter
Copy link
Author

I see. So could you provide such links contains videos that are not redirected 
properly?

Original comment by [email protected] on 2 Apr 2012 at 2:09

@GoogleCodeExporter
Copy link
Author

I've added a content filter. You may try to filter out videos (content type: 
object).

Original comment by [email protected] on 3 Apr 2012 at 11:49

  • Changed state: Started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant