I Don't Know How to Redirect... so ashamed.

7 replies
Hi,

There comes a time when something so elementary hits me... and I forgot how to do it.

How do you make for an extension of a domain, for example...

www.blahblah.com/extension

redirect to.....

www.somethingelse.com


Help, its kinda easy I believe... but I forgot how to do it!

Thanks!
#ashamed #redirect
  • Profile picture of the author Terry Brazil
    Put something like this in the pages meta tag.

    <META http-equiv="refresh" content="5;URL=http://www.yourredirectlink.com">

    Change the content="5; part if you want to delay longer or take it out if you do not want a delay. If you are simply going to be redirecting via a sub directory simply make an index.html file with that in the meta tags.
    {{ DiscussionBoard.errors[174763].message }}
  • Profile picture of the author francophile
    Google is not keen on those META re-directs. Better to use a permanent redirect command in your .htaccess file.
    {{ DiscussionBoard.errors[174769].message }}
    • Profile picture of the author warriorgo
      Hi francophile,

      How is that done? Would appreciate it if you can guide me thru.

      Thanks!
      {{ DiscussionBoard.errors[174781].message }}
  • {{ DiscussionBoard.errors[176270].message }}
  • Profile picture of the author chessguy
    <?php
    header( 'Location: http://www.your-location-here' ) ;
    ?>

    save that as index.php in the 'extension' directory.
    {{ DiscussionBoard.errors[176288].message }}
    • Profile picture of the author rosetrees
      If you use cpanel you can do that under subdomains
      {{ DiscussionBoard.errors[176304].message }}
  • Profile picture of the author Punkaj Dube
    Thanks Francophile for the .htaccess thing. I never knew it could be done through it.
    {{ DiscussionBoard.errors[176307].message }}

Trending Topics