Autobots

What's the easiest way to redirect a specific page on my site?

Asked by Autobots 2 years ago site page


Alex Flueras
1
 
Another way to redirect a page is via the .htaccess file if your site is hosted on an Apache server. Open the .htaccess file and add this line:

Redirect 301 /old/old.htm h**p://www.you.com/new.htm

-replace h**p with http.

by Alex Flueras 2 years ago

Rollback999
1
 
If you want to redirect users to another site once they enter a specific area on your site then you just have to use some of this Javascript code in the page to be redirected from:

<script type="text/javascript">
<!--
  window.location = "www.google.com"
//-->
</script>

Replace the www.google.com with the URL address you wish to redirect to.

by Rollback999 2 years ago

unregistered
0
 
-1'

by unregistered 1 year ago

Nathan B.
0
 
I also put a link in the body section for anyone who has JavaScript disabled. I tried pasting the code here but it won't work, so go to bit.ly

by Nathan B. 2 years ago

Answer this question

What's the easiest way to redirect a specific page on my site?

0 errors found:

 
0