Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirect to another page
03-01-2018, 03:41 PM
Post: #1
Redirect to another page
Grab this tiny script put in the location where you want the page to go and give it a PHP extension....

http://www.wormworks.org/ming/font/redirect.txt

Good if you delete a site and want your people to go to your index..or maybe you moved so e stuff and want to direct your fans there..
Visit this user's website Find all posts by this user
Quote this message in a reply
03-08-2018, 10:53 AM
Post: #2
RE: Redirect to another page
Here's the explanation:

Put the code below into your index.php and if someone tries to access that directory it will take them to your 404 which goes to your main page...ยง8-)

You can put any URL in that and anyone who tries to access will be taken to that url...it's a redirect ...

<?php header('Location:http://tonebytone.com/404.html'); exit; ?>

So far it works in HTML5 as well as in previous versions of HTML.
Find all posts by this user
Quote this message in a reply
03-08-2018, 03:26 PM
Post: #3
RE: Redirect to another page
Good idea Flo......

But if you are like me and I just move the site, I like to send them direct.....
Visit this user's website Find all posts by this user
Quote this message in a reply
03-09-2018, 11:34 AM
Post: #4
RE: Redirect to another page
This does send them directly - or maybe I got the wrong one, lol. I'll have to go find one and make sure it sends directly.
Find all posts by this user
Quote this message in a reply
03-09-2018, 01:40 PM
Post: #5
RE: Redirect to another page
I think that sends them to your main index.....I want them to go to the index page of site....I think..LOL!
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)