RedirectFilter: Can't edit meta or serverside files...
August 31, 2006 7:45 AM   Subscribe

Yet another redirect question: How can I auto-redirect a visitor to another page, although I can't edit the page's HTML/code, per se?

I've got a blog on a freebie host with no adverts, and I want to redirect users from the blog page (wordpress) to a new blog page on a different host -- but all I can do is submit story entries, not edit the actual code like the meta tags (as far as I know, unless you know of a wordpress.com seup function I am not aware of..?

Is there an HTML or or some js taggery I can set up in one of the stories/articles to make the page redirect to the new blog?

I've seen it done on Myspace I think.. Some fake account with a cute girl picture wants to be my friend, so in visiting her profile to see if she's actually a person, the myspace account redirects you to a porn/spam-etc site instead. How do they do that without being able to actually edit the serverside page data?
posted by vanoakenfold to Computers & Internet (6 answers total) 1 user marked this as a favorite
 
This should work:

<script type="text/javascript">
<!--
window.location = "http://www.google.com/"
//-->
</script>
posted by smackfu at 7:49 AM on August 31, 2006


I posted it as an entry, even under the HTML option, but it comes back without the script tags and with the !--'s preceded by paragraph tags ;-/
posted by vanoakenfold at 8:01 AM on August 31, 2006


After a bit of google searching I think what you want is not possible I'm afraid.

http://wordpress.com/forums/topic.php?id=392

Smackfus suggestion should have worked but It obviously doesn't allow you to insert code.
posted by twistedonion at 9:23 AM on August 31, 2006


Can you stick files in the same directory as the URL?

If so you could do a .htaccess redirect. (Assuming it's running Apache.)
posted by maschnitz at 10:44 AM on August 31, 2006


>I've seen it done on Myspace I think.

Yeah but MySpace is famously insecure.

If you read through that guy's explanation of how he hacked myspace by putting javascript into CSS style attributes and so on, you might get something that works.
posted by AmbroseChapel at 4:46 PM on August 31, 2006


Thanks for your help guys :-)
posted by vanoakenfold at 10:20 PM on August 31, 2006


« Older It's snot right   |   Forever hair? Newer »
This thread is closed to new comments.