I have an web address rush.rocksolidpromotion.com (which is an empty page now) but the content is on the address rush.rocksolidpromotion.com/rush/home.html So how can I put a link on the first address rush.rocksolidpromotion.com that can automatically send the user to the page that has the content?
Asked
Active
Viewed 1,199 times
-1
-
Return an HTTP redirect response (look at the HTTP 300 status code family depending on which redirect you actually need). You _can_ do this with HTML but you really should do this at the http level. – Benjamin Gruenbaum Feb 22 '14 at 22:25
-
That other question (How to redirect from an HTML page?) looks useful also. Thanks! :) – Lexus de Vinco Feb 22 '14 at 23:13
2 Answers
0
Try this:
<meta http-equiv="Refresh" content="0;url='http://rush.rocksolidpromotion.com/rush/home.html'" />
<script>window.location.replace('http://rush.rocksolidpromotion.com/rush/home.html')</script>

Toothbrush
- 2,080
- 24
- 33
0
Place this in the head
tag:
<meta http-equiv="refresh" content="0;URL=rush.rocksolidpromotion.com/rush/home.html">
You should also use JavaScript in case the browser ignores content 0
. Also a header redirect if you're on a php page.

Cilan
- 13,101
- 3
- 34
- 51
-
@toothbrush Thanks for the answers guys. I'll check them out tomorrow to see if they work :) – Lexus de Vinco Feb 22 '14 at 23:10