Jump to content

Search the Community

Showing results for tags 'Redirect'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 20 results

  1. I am attempting to use a meta tag to redirect someone if they attempt to go to a specified number of pages. Problem is these pages are pdf files so I cant really add some code to that. Anyway I decided to use a javascript file and import React and ReactDOM from the JS Library. I simply don't know what I am doing wrong with this code though. If anyone could help that would be amazing! import React from 'react'; import ReactDOM from 'react-dom'; String[] Directory = {"A", "Bunch", "Of", "Website", "Directories", "Here"}; if (window.location.href = "Website name here" + Directory)) { Rea
  2. I'm looking for directives that help solving the problem of redirecting a not existing subdomain towards the www subdomain. I know/guess .htaccess is used, but cant figure out how. My present situation is that existing subdomains are redirected well. I adjusted virtual hosts in this way: <VirtualHost *:80> ServerName mysite.dev ServerAlias mysite.dev *.mysite.dev DocumentRoot X:/wamp/www/TestVirtHost/ <Directory "X:/wamp/www/TestVirtHost/"> Options +Indexes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> <
  3. Hi there, Just about to do some redirects and wanted to make sure I was doing it correctly... the old hosting domain old-domain.com, is going to be forwarding to the new hosting domain, new-domain.com. Would I write the rule as follows: Redirect 301 /page-name/ http://www.newdomain.com/page-name or would I have to include the old domain in front of the page name as well? Redirect 301 http://www.old-domain.com/page-name/ http://www.new-domain.com/page-name Thanks
  4. HI: I have a responsive web design with links to pages at another website, which is a site that is NOT mine. However, the pages at the other site have 2 different URLs. For example: (www.thispage.com/page-1.html or www.m.thispage.com/home.html, as a reference to a mobile page) . In other words, one link at the other site is for desktop viewers and the other link is for mobile users, but all links meant for desktop users are redirected and go directly to their home page (not to the mobile equivalent page). If a user at my website clicks on a link to their website from a mobile device, t
  5. hello i need help with a simple javascript simple login form, i am building a small website for I and my classmates. i want it to be able to redirect each user to a specific page when a corresponding passcode is entered, i know its unsafe but we dont plan on keeping valuable information on the site, i dont know about MSQL and dont even wish to use it, the code works at this level but am unable to add users since i dont understand javascript if someone could help me i will be very grateful thanks in advance /*here is the code i got so far*/<tittle>Enter Passcode to proceed</title&g
  6. Hi folks! I have been using relatively clean and simple PHP contact forms for quite some time now. They fit my needs and are easy to work with. However, after submitting the message, it takes me to a gray screen with the nothing but text I programmed it to echo. It isn't an error or bug, but it's an ugly redirect and does not look professional. I would like to learn how to work with this in one of two ways: either submit the message without leaving the contact page, or add a redirect of some sort. This is the contact.php file I use. If anyone has input on how to do this, it'd be greatl
  7. I'd like to achieve the following with javascript:When you type any of the following words into the inputbox and click the submit button you'll be redirected to the corresponding page:tree => tree.phpchocolate => chocolate.phpbird => bird.phpcandle => candle.phpapple => apple.phpHowever if you type a different word than the above, you'll get a warning message. <div id="main"> <form action=""> <ul> <li><input class="inputbox" type="text" name="TypeWord" value="" placeholder="Type a word here"/></li> <li><input class="but
  8. I'm not sure if I'm posting this ques in a correct forum (whether it's related to HTML). I'd like to ask: When I type the addr below (just an example), http://ss.activate.ilongman.com/getfile/269/id/415 it'll redirect me to download a file. How is it made? Is it PHP? Or just HTML / JS redirecting? Another ques is: I'd like to batch download (automate downloading) the files according to the pattern (xxx): http://ss.activate.ilongman.com/getfile/xxx/id/415 What program language should I use to achieve this? Thank you.
  9. sepoto

    Ob_Start();

    I had some code and recently I moved over to a new server which happens to be running Debian 5.0 Lenny. I had some code involving page redirection that stopped working and I had to add ob_start(); to the top of the .php files in question to get them working again. I read some documentation for ob_start(); but I have to admit it did not make sense to me at all. Why am I unable to send my headers unless ob_start(); has been invoked first? Is there a stack someplace being created? If so is it a stack only for header information? What exactly is ob_start(); doing? Thank you!
  10. Back again with same task but moved on half a step.Trying to redirect to mobile page using php.I assumed the code here would redirect if the match was true, or continue to load the page (index.php) if not. <?php $agent = $_SERVER['HTTP_USER_AGENT']; if(preg_match('/iPhone|Android|Blackberry/i', $agent)){ header("Location: mobile.html"); exit; } ?>But is there some boolean weirdness? I'm getting this error - Warning: Cannot modify header information - headers already sent by (output started at /mysite/index.php:1) in /mysite/index.php on line 4in
  11. I have remade my company webpage using very little php mostly because I don't know it however the last web designer seemed to love it and now all the links that are out in the big www start with "?p=" and I can't do a 301 redirect on those pages. how do I rewrite those links as they are coming in to change ?p=page to page/php so I can properly redirect them in my htaccess file. Redirect 301 /?p=oldpage http://www.mypage.com/newpage.php/ won't redirectRedirect 301 /oldpage.php http://www.mypage.com/newpage.php/ will redirect I found this in his index.php file and I think thats what he used to
  12. I've made this typo million times on w3schools that i've entered address w3schools.com/forums and that page displays error "page doesn't exist". I would like that w3schools.com/forums would redirect same way as w3schools.com/forum would do.
  13. I got a gig helping to get this site running on wordpress, and I cannot figure out why most pages redirect to the homepage. The htaccess doesn't have anything but wordpress stuff in it. This is the site:http://capecodwithinreach.com/ Notice, if you type anything after that, like the pages i am trying to create, it redirects home.http://capecodwithin...com/newpage.phphttp://capecodwithin...still-redirects However, things like:http://capecodwithin...om/wp-login.phpstill go to the right place. Why is this, and how can I stop it? I can't create any pages! Thanks!
  14. dalawh

    Redirecting

    I am using an if and else statement. it will display the index.php if the cookies are set and it will display the other.php if the cookies are not set. I have been using the header function to redirect. instead of using require/include to display the page. Is there a better way to redirect the pages or is the header the best way?
  15. sonu

    PHP Redirect

    Hi,Friends I need small help.I know it is not an big issue for PHP Experts.I need a redirect code like the example below:If user tries to visit www.domain.com/page1.php then it should redirect to home page means index.phpI need to redirect only 1 particular page not all pages.I will insert this code in index.php .Then,if user tries to visit page1.php then it should be redirected to page2.php .But,the code should redirect only if user trying to access page1.Thanks in Advance! Help me Guys.
  16. Hi there!!!Is there any way I can code a website to redirect the page to a new one is they refresh it???(Or something similar)Many thanksMm
  17. Just want to let anyone know who does not know already the script to redirect your website to the iPad for your users who use a iPad. this is not the code to redirect to your mobile site, but to your iPad site (if you have one). <script language=javascript><!--if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) { location.replace("http://url-to-send-them/iphone.html");}--></script> The highlighted red is where you place the url where your ipad site is. I hoped this has helped for anyone needing help with this subject.
  18. If anyone is wondering how to redirect to a mobile site then this will be for you. This is a code that will automatically redirect from any page you place the code on. Its great for people who use mobile devices and come across your site, automatically they will be redirected. How is this so? Within the code you see "600", this means when a vistors via there mobile devices comes upon your site that is larger (your sites page width) then 600 will be redirected to your mobile site. <script type="text/javascript"><!--if (screen.width <= 600) {document.location = "mobile.html";}//-->
  19. Hi there,I am breaking my head to a htaccess issue. I am trying to rewrite my dynamic urls, which works fine. However, when I enter the old url the browser is not redirecting the old url to the new url.This is the code I am using:RewriteRule ^([a-zA-Z0-9-z\-]+)/$ search.php?a=$1RewriteRule ^([a-zA-Z0-9-z\-]+)$ search.php?a=$1For example; if one enters domain.com/search?a=word the url should transform to domain.com/word.Is there anyway who can help me with the redirect part?Thanks in advance! I tried like 1000 tutorials but they all just rewrite the url and do not redirect the old url to the ne
  20. Newbie to web design here, so please dont judge if this is an "easy" questionI want to know how to set up a redirect of sorts. What i have planned is to have a really simple homepage on the website im designing, which will be a gamers website/clan, specifically geared towards black ops and world at war "zombies". The homepage will be just image links to the forums, news, trophy guides, facebook page, etc, and when a user clicks on any of these links i want a redirect for style purposes basically, which i will explain.In the games i mentioned, there is a teleporter that, when you activate it, y
×
×
  • Create New...