Contact for Expert ServicesAdvertise with Ecomspark. Contact me .

Various ways to redirect webpage URL.

There are various reasons to redirect a domain to another or a webpage URL to another. Like if you are moving to a new domain with new website with better design and you wish to keep your old website visitor then it will be better if you make a redirect to new one. If you wish to keep all of your website traffic to a single website then redirect all of your domain to main one. If you are having some 404 error page then you should redirect all your error page to another one for better visitor experience.

So, here are some ways to redirect URL –

1 – If looking to redirect your old domain to new one then, if both of domain are on same hosting provider and if your domain hosting provider having domain redirection services then you can do it from c panel.

2- In html , redirection can be done via meta tag –

<meta http-equiv=”refresh” content=”0; url=” />

3- Another option is to show a message with a link on it to you new website.

4- You can use javascipt also to redirect webpage url –


5- In php, header function can be used to redirect a url –


header(“Location:”, TRUE,303);



6- If you using apache server then you can also redirect a webpage or domain via .htaccess file.

  • RewriteEngine On
    RewriteRule ^(.*)$$1 [L,R=301]
  • “L” indicates that it’s the last instruction and “R” means redirect, and “301” means a permanent redirect.


How to use .htaccess for url redirect ?


    With havin so much content and articles do you ever run into any problems of plagorism or copyright infringement?
    My site has a lot of exclusive content I’ve either written myself or outsourced
    but it seems a lot of it is popping it up all over the internet without
    my agreement. Do you know any ways to help reduce content from being stolen? I’d certainly appreciate it.

    • kgaurav

      i never run in to such problem, but i think u are asking a valid question.

  • Sherryl

    That is a really good tip especially to those fresh to the blogosphere.
    Short but very precise info… Many thanks for sharing this one.
    A must read post!

    • kgaurav

      thanks Sherryl..

  • Smithf198

    Very interesting topic , appreciate it for posting . The friendship that can cease has never been real. by Saint Jerome. eefebkecegekakfd

    • kgaurav

      update with the blog..thanks

  • schwinn 240 recumbent exercise bike

    I do not even know how I finished up right here, however
    I believed this submit used to be great. I do not recognize
    who you might be however definitely you are going
    to a well-known blogger should you aren’t already. Cheers!

  • dry ice

    Fabulous, what a website it is! This webpage gives helpful information to
    us, keep it up.

Translate »