Results 1 to 7 of 7
-
10th Mar 2012, 05:18 PM #1OPMemberWebsite's:
Nerdy-Tutorials.com Mp3viddown.com Filmlab.euJavascript Redirect help
Hello can someone please help me out redirecting by using Javascript?
not for my site, but would like to create a script.
I Would like
Site.com/index.php?something=*
TO
site.com/
Thanks!ibby Reviewed by ibby on . Javascript Redirect help Hello can someone please help me out redirecting by using Javascript? not for my site, but would like to create a script. I Would like Site.com/index.php?something=* TO Rating: 5
-
10th Mar 2012, 05:59 PM #2Too busy :|Website's:
L337Fx.com BeastieBay.netYou're trying to track clicks or something ?
-
10th Mar 2012, 06:01 PM #3MemberWebsite's:
eotips.com
-
10th Mar 2012, 06:03 PM #4MemberWebsite's:
Elite.SO Defendos.com Motionite.comWhy would you use JS for this?
-
10th Mar 2012, 06:13 PM #5Respected MemberWebsite's:
DL4Everything.com Soft2050.in^ Exactly, htaccess would do it more efficiently
Anyway, add this php code in the document and it will work (code is untested but should work)
PHP Code:<?php
if (isset($_GET['something'])) {
$baseurl = 'http://' . $_SERVER['HTTP_HOST'];
echo '<script language="javascript" type="text/javascript">window.location.href="' . $baseurl . '";</script>';
}
?>
-
10th Mar 2012, 06:17 PM #6MemberWebsite's:
Elite.SO Defendos.com Motionite.comI would use header redirect
-
10th Mar 2012, 08:28 PM #7Respected Member
If headers in his code weren't already sent...
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
JavaScript help
By Keosoft90 in forum Web Development AreaReplies: 4Last Post: 4th Sep 2012, 04:23 PM -
[WordPress] How to do this in javascript/php?
By thizzladen in forum Web Application/Script SupportReplies: 0Last Post: 16th Mar 2012, 12:05 AM -
JavaScript Kit
By Daniel in forum Useful SitesReplies: 0Last Post: 7th Mar 2011, 06:48 PM -
Help About JavaScript
By macypro in forum Technical Help Desk SupportReplies: 1Last Post: 7th Dec 2010, 12:23 AM -
help with some javascript
By bumilad20 in forum Web Application/Script SupportReplies: 2Last Post: 3rd Jun 2010, 05:01 AM
themaLeecher - leech and manage...
Version 5.02 released. Open older version (or...