Hello, I have been searching around the net looking for solutions to my problem, but none have worked. My issue is that when i redirect using: <meta http-equiv="Refresh" content="0; url=<?php echo $URL; ?>"> The hash tag part of URL gets removed by IE. So example.com/sample#foo will just load as example.com/sample. This happens in all version of IE and appears to be a bug, but the question is how do I get around this issue? Here is the redirect page template for wordpress that I am using: <?php /* Template Name: Redirect */ ?> <?php if (have_posts()) : the_post(); ?> <?php …

Member Avatar
Member Avatar
+0 forum 5

Hi All, I have a PHP code which do some changes to the POST variables it receives and redirect the page to some other page. This PHP code was initially designed to work without Ajax. So there wasn't any problem with the redirect function and it perfectly handles the POSt variables and redirect the user to another page. So now I want to use the same PHP code with Ajax... :) I tried it and and it did not gave me the results I was expecting. Problem is with the redirect function. Other PHP lines execute perfectly fine( it stores …

Member Avatar
Member Avatar
+0 forum 8

Cache in local storage of browsers gets cleared when website page redirects from AliPay payment website. This is happening in some computers and working fine in some. From my website user selects AliPay payment method then user is redirected to payment website and on successful payment is being redirected back to our website. In most cases it dont clear cache and works normal but in some cases it clears cache. Why is this happening. Any help would be appreciated. Update: After some investigating i thought Rapport is making trouble but it is not. This problem is only on chrome but …

Member Avatar
Member Avatar
+0 forum 1

Issue: I need example.no-ip.org to point to example.no-ip.org:20202 I have read that this is not possible with just DNS. However no-ip.org lets me set up DNS SRV (records?). Ive have followed this guide to set it up, but it does not redirect to IP : PORT [url]http://www.no-ip.com/support/guides/other/configuring_srv_records_with_no-ip.html#1[/url] Still cant get it to work. example.no-ip.org only points to the IP, no port. Q: Is it possible to do what i describe? Q2: How? Is it just my SRV setup that is messed up? Here is a screenshot after creating the records(?): [URL="http://i43.tinypic.com/219b6om.jpg"]http://i43.tinypic.com/219b6om.jpg[/URL] (five was the default level of priority) Thanks to …

Member Avatar
Member Avatar
+0 forum 15

I want to redirect every user on my site to folder - if folder exists with htaccess. Regardless to which page he wants to access (index.php, team.php, custom.php), he must be redirected to the folder I want.

Member Avatar
Member Avatar
+0 forum 3

I have a few dozen links like: http://www.domain.com/publication?id=test http://www.domain.com/publication?id=test&tkn=25MMI7 http://www.domain.com/publication?id=VfgodzE4Akg&tkn=25GJK02&gid=VCsfkQENp4g:20150323:s I want to be able to redirect them to: http://www.domain.com/publication/?id=test http://www.domain.com/publication/?id=test&tkn=25MMI7 http://www.domain.com/publication/?id=VfgodzE4Akg&tkn=25GJK02&gid=VCsfkQENp4g:20150323:s How can I do this? Thank you.

Member Avatar
Member Avatar
+0 forum 1

Hello good people. I am trying to add a snippet of javascript to the head tag of a mobile site that checks if the visitor is using a PC and if the visitor is viewing the mobile site on a PC I want them to be redirected to the normal site. The following code snippet is the best I could come up with. I am not too well versed in javascript but I thought I was close. This code SHOULD check the user's screen width and if it is greater than a certain value then it will promt to the …

Member Avatar
Member Avatar
+0 forum 4

Just discovered PLOOP.com. Have all the folders but the bootloader file online is said to be outdated. don't know where the newes file is

Member Avatar
Member Avatar
-2 forum 3

Hi, I am trying to write a .htaccess script that can redirect any URL on my site (whether it exists or not, including sub-domains) to the index page of that site. For example: example.com/pages/page.htm ---> example.com sub.example.com/page.htm ---> example.com error.example.com/error ---> example.com I've tried a few things with mod_rewrite but I can't seem to get existing urls, non-existing urls and sub domain urls to all direct to the index page. Thanks, Martin

Member Avatar
Member Avatar
+0 forum 5

I moved my old site to the new domain and have parked the old site over the new domain. Any ideas how to do the proper 301 redirect so the old site redirects each page to the new site. So: http://dwhs.net/web-hosting-plans.htm Redirect to: http://webhost.pro/web-hosting-plans.htm So far I just have: Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} !=webhost.pro [NC] Thanks, Charley

Member Avatar
Member Avatar
+0 forum 1

Hi! I'm not a web developer, but I'm a blogger and I would like some tips on how to create a 404 error message or to do something about this message feom Blogger: "Sorry, the page you were looking for in this blog does not exist." I would like to redirect people from that error page to another page that is viable and which looks better and gives a better impression to the person who want so visit my blogspot blog. Can anyone help me? I don't know how to do that. Thank you so much!

Member Avatar
Member Avatar
+0 forum 1

I am having issues with bookmarks directing to other webites. I can save bookmarks but when I click them later it goes to another website like http://www.adcash.com/script/pop_packcpm.php?k=5223ae7e0c776178106.541145&h=59ebbf60230047531bf2e60d5ae2390545fce553&id=0&ban=178106&r=136690&ref=h&data=&subid= I have windows 8 and am using Firefox which says it is up to date. How do I get rid of the virus? Thank you!

Member Avatar
Member Avatar
+0 forum 4

Hi, I'm not sure if I'm posting this in the correct place as this is related to nginx configuration and not specifically PHP scripts. If I am posting this in the wrong section, please let me know and I will post it in the correct location (unless a Mod is able to move threads?). I'm configuring nginx on my server and I've got it mostly configured how I want. The last thing I need to do (for now) is remove ".php" from the URL if someone goes there. I have done some research on this but can only find information …

Member Avatar
Member Avatar
+0 forum 2

Hi, I changed my wodrpress URL manually and after then i saved and loged out from admin panel . now i can't login to my wordpress Admin page after changing The URL 's and whenever i want to log in it redirects to other page that i changed in URL . now i can't login to Admin page to correct URL's . what should i do to solve this problem . Thanks so much ,

Member Avatar
Member Avatar
+0 forum 4

I have the cookies and subdomain selection for header: <script type="text/javascript" src="/static/js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(function(){ var city = readCookie('city'); if(city !=null && city !=''){ window.location.href = 'http://' + city + '.example.com'; } $('#citygo').change(function(){ var city = $(this).val(); window.location.href = 'http://' + city + '.example.com'; }); }); function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c …

Member Avatar
Member Avatar
+0 forum 15

I'm not exactly sure what the problem is but the cookies aren't available for subdomains. Is there any way around this, or is there a better way to set the cookies domain? Thanks! <?php ini_set("session.cookie_domain", ".example.com"); // Set cookie and redirect when user change city if( isset($_POST['city']) && $_POST['city'] != '' ){ $cookie_expire = time() + 50400; setcookie('city', $_POST['city'], $cookie_expire, '/'); header("Location: http://".$_POST["city"].".example.com"); die(); } // Redirect if user selected default city if (isset($_COOKIE["city"])) { $subdomain = array_shift(explode(".",$_SERVER['HTTP_HOST'])); if ($_COOKIE["city"] != $subdomain) { header("Location: http://".$_COOKIE["city"].".example.com"); die(); } }

Member Avatar
Member Avatar
+0 forum 5

The cookie is not holding and the domain example.com cannot redirect to a.example.com when I type on the address bar. Anyone good at cookies? Any help will be very much appreciated. $(function(){ var city = getCookie('city'); if(city !=null && city !=''){ window.location.href = 'http://' + city + '.example.com'; } $('#citygo').change(function(){ var city = $(this).val(); window.location.href = 'http://' + city + '.example.com'; }); }); <select id="citygo"> <option value="0">Select City</option> <option value="amsterdam">Amsterdam</option> <option value="newyork">New York</option> <option value="london">London</option> <option value="cardiff">Cardiff</option> </select>

Member Avatar
Member Avatar
+0 forum 1

Hello i'm using javascript code to redirect visitor to random link like the example below but sometimes i get error 404 response :( var pageArr = ["http://google.com", "http://yahoo.com", "http://bing.com", "http://youtube.com", "http://facebook.com"]; document.location.href = pageArr[Math.ceil(Math.random()*5)]; ps:the code does exist in external js file what the problem here ? i'm not coder ..thanks in advance

Member Avatar
Member Avatar
+0 forum 2

I'm trying to combine the functionality of the 3 codes below to produce a delayed redirect to a random URL while displaying a bar filling up by %. Each one works great, but I need all 3. Any help would be greatly appreciated. Thanks! **The first redirects after a delay** <script type="text/JavaScript"> <!-- setTimeout("location.href = 'http://www.yourURL.com';",1500); --> </script> **The second redirects to a random URL** <script type="text/javascript"> (function(n){ var pages = ['http://www.thestormybrain.com/2013/11/malcolm-gladwell-choice-happiness-and.html', 'http://www.thestormybrain.com/2013/11/steve-jobs-how-to-live-before-you-die.html', 'http://www.thestormybrain.com/2013/11/david-blaine-how-i-held-my-breath-for.html']; n = n < 3? 0 : n < 8? 1 : 2; window.location.replace(pages[n]); })(Math.floor(Math.random() * 10)); </script> **The third redirects using a bar being filled …

Member Avatar
Member Avatar
+0 forum 22

What would I need to add to the code below to have the random redirect timeout for 5 seconds before triggering? <script type="text/javascript"> (function(n){ var pages = ['http://www.thestormybrain.com/2013/11/malcolm-gladwell-choice-happiness-and.html', 'http://www.thestormybrain.com/2013/11/steve-jobs-how-to-live-before-you-die.html', 'http://www.thestormybrain.com/2013/11/david-blaine-how-i-held-my-breath-for.html']; n = n < 3? 0 : n < 8? 1 : 2; window.location.replace(pages[n]); })(Math.floor(Math.random() * 10)); </script> I know what a regular redirect looks like, but I don't know where to place it within this special array. <script type="text/JavaScript"> <!-- setTimeout("location.href = 'http://www.yourURL.com';",1500); --> </script> Thanks for any help you're able to provide!

Member Avatar
Member Avatar
-1 forum 2

hi, i am interested in php link redirect. lets say i have a website with a lot of links, and most of the time if i change one file name i have to update that on everypage, it's irritating, as for other website like microsoft, they use links like **go.microsoft.com/fwlink/id3242** or something like that. most of microsofts desktop app also contains this link. so even if microsoft move their website, or rename a file they redirect to that page. so that means they have a script that contains all the link and also contains where it should redirect. even the …

Member Avatar
Member Avatar
+0 forum 1

i have a problem to redirect user to the requested page after login. 1-this are my files:login.php,register.php,protected.php,plan1.php,member.php et plan2.php,home.php 2-plan1,plan2, and member have a check before people have access. 3-when a user click on plan1 for exemple and get redirect on login.php 4-My problen is after logged in he goes directly to member.php 5-I would like that the user get redirect to plan1.php cause that's the page he wanted to visit. i found a couple a solution but they didn't work. /////////////////////////////////////////////////////////////////////////////////////// *plan1.php* <?php session_start(); if(!isset($_SESSION['username'])) { header('Location: login.php'); exit; } ?> /////////////////////////////////////////////////////////////////////////////////////// *login.php* <?php session_start(); echo "<h1>Se connecter</h1>"; if(isset($_POST['submit'])) …

Member Avatar
Member Avatar
+0 forum 16

Everytime I open a new page in Windows 8 I get an advertisment pop up screen. How can I delete this virus?

Member Avatar
Member Avatar
+0 forum 3

When i login in wordpress component at admin side of joomla at that time i m not redirecting login page to dashboard of wordpress and when i go at site side at that time i m with login status..and then i try to login from admin site then i m redirecting to dashboard.. what is the issue is in my coding or site.. Plz give me solutions..Thank You

Member Avatar
Member Avatar
+0 forum 5

Now this one always bugs me! I'm dealing with a lot of checks that result in redirection dependant on certain results. **Example:** 1) If session exists and users lands on login.php they are pointed to index.php. 2) When landing on any page after loggining in, if their account isn't complete they're redirected to account-wizard.php to complete their profile. 3) When they land on a page it checks if they're authorised for that particular content. If not they are redirected to an upgrade page. The list goes on... I HATE USING `<meta http-equiv="refresh" content="0; url=http://example.com/">`!!! It's slow, and only redirects after …

Member Avatar
Member Avatar
+0 forum 23

The problem started with getting redirected when we searched with Google. So we tried other search engines which worked for a little while but now it doesn't matter which search engine we use. If you go back to the original search after you are redirected a time or two you can finally get to the website you want. But now also when we try to go to the Google website it pops up: "Unable to connect: Firefox can't establish a connection to the server at www.google.com. The site could be temporarily unavailable or too busy. Try again in a few …

Member Avatar
Member Avatar
+0 forum 14

Hi folks, I've recently got into doing a bit of web development and got hosting for it. The website is consisted of mainly 3 separate folders(one for home page, 2 for 2subdomains) under the html root directory to avoid cluttering. To get to my home page on my main domain, I used to do a redirect via a html meta refresh, so i would have an index.html file under the root directory which then redirects into the 'homePage' folder. I have since learnt that this is ugly and not a recommended way to do so. At the moment I have …

Member Avatar
Member Avatar
+0 forum 3

Help me! I have a domain, I would like to handle subdumain with .htaccess file. for example: http://usa.hotbizzle.com or http://india.hotbizzle.com should not redirect to sub folder. URL should not change in the browser but it has to call a file php file and give result. Is there any possibilities in .htaccess or php.ini file?

Member Avatar
Member Avatar
+0 forum 2

i was working on a plugin that can find some special url in wordpress page contents and then if matching URL found then change that url automatically to another url like without giving backlink benfit to that site. for example : if i have defined a site that start with www.site2.com and i wants to redirect this to another site www.site3.com now pluging will convert url fount www.site.com on page to www.site.com/og.php=www.site2.com now if user clicks this url this will be redirected to www.site3.com after inslalling and activating plugin found urls are converting but when i clicks them getting error …

Member Avatar
Member Avatar
+0 forum 6

#This is for Laravel 3.*# ## Hello, ## With this snippet I'm providing a simple way to automatically filter `Input::get()` and `Input::old()`. To achieve this result we need to make few changes: * extend Input and Redirect classes by creating new files in `application/libraries/`, the files are: **input.php** and **redirect.php**; * comment the aliases of these classes in `application/config/application.php` file, otherwise the application will ignore the extended libraries. The extended Input class overwrites `Input::query()` so it can use the new method `Input::sanitize()`, which is where you can place your filters, in this example I'm using `filter_var_array()`: public static function sanitize($array) …

Member Avatar
+1 forum 0

The End.