Redirecting URL code.... Delay for 5 seconds? or 2? or None?

by 6 replies
8



























#programming #code #delay #links #redirecting #seconds
  • Unless you need to explain the re-direction in order to make
    your visitor feel safe or understand what is happening, I would
    use 0 delay.

    I also recommend .htaccess redirects as they are instant and reliable.
    • [1] reply
  • here's a tutorial I found for you on Google:
    htaccess 301 redirect tutorial
    • [1] reply
    • Thanks, still a bit lost/confused.

      can you do me a rough sample, and paste the code in the coded marks:

      Code:
      like this
      Please
  • That site is fairly easy to follow, it explains step-by-step how to implement 301 redirect. If you have a particular section you don't understand, then post here.
  • Open Notepad, copy and paste this code into it and change xxx to your destination URL:

    Code:
    RewriteEngine on 
    RewriteRule ^(.*)$ xxx [L,R=301]
    Save the file as .htaccess (choose "all files" in the "save as type" drop down). Make sure it's called .htaccess and not .htaccess.txt when you save it, rename it if you make a mistake.

    Upload this file to any folder, e.g. domain.com/folder/, and anyone going there will be redirected.

Next Topics on Trending Feed