Results 1 to 12 of 12
Thread: Redirect all pages script?
-
06-22-2005, 05:46 AM #1Web Hosting Master
- Join Date
- Nov 2004
- Posts
- 675
Redirect all pages script?
Is it possible to redirect every page that a person types to the main page?
Example
www.mypage.com/find.htm --> www.mypage.com
www.mypage.com/blabla.htm --> www.mypage.com
www.mypage.com/test/bla/ddd.php --> www.mypage.com
Anything that a person types redirect to main page.
I use cpanel.
p.s didn't know where to post this.
-
06-22-2005, 03:03 PM #2Disabled
- Join Date
- Dec 2002
- Location
- chica go go
- Posts
- 11,876
Don't bump threads.
something like this may work...
Code:RewriteEngine On RewriteRule (.*) http://yourpage.com
-
06-22-2005, 03:14 PM #3Retired Moderator
- Join Date
- Oct 2004
- Location
- San Francisco, CA
- Posts
- 2,455
Or you simply could have your 404 redirect to your homepage, but mikey's way is probably quickest
Tyler Cole
Eeek, a Blog
-
06-22-2005, 04:19 PM #4Web Hosting Master
- Join Date
- Dec 2003
- Location
- Fairfax, Virginia
- Posts
- 6,834
EDIT: Err, that'd probably just redirect users infinitely.
Last edited by SniperDevil; 06-22-2005 at 04:25 PM.
-
06-22-2005, 04:22 PM #5Retired Moderator
- Join Date
- Jun 2002
- Location
- Texas
- Posts
- 7,954
Moved to programming. Looks like you have a few options.
-
06-22-2005, 04:33 PM #6Web Hosting Master
- Join Date
- Nov 2004
- Posts
- 675
Originally posted by Tyler
Or you simply could have your 404 redirect to your homepage, but mikey's way is probably quickest
Thank you
-
06-22-2005, 05:07 PM #7Web Hosting Master
- Join Date
- Jun 2004
- Location
- Bay Area -USA
- Posts
- 1,740
Why would you do this? Just wondering.
<<< Please see Forum Guidelines for signature setup. >>>
-
06-22-2005, 05:09 PM #8Web Hosting Master
- Join Date
- Nov 2004
- Posts
- 675
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">
Is the code for 404, for people who also have my problem
-
06-22-2005, 05:14 PM #9Web Hosting Master
- Join Date
- Nov 2004
- Posts
- 675
Originally posted by VolkNet
Why would you do this? Just wondering.
Yet all my users still link to me, so I needed the code to link them to my main page that explains the situation
-
06-22-2005, 06:51 PM #10Web Hosting Master
- Join Date
- Jun 2004
- Location
- Bay Area -USA
- Posts
- 1,740
aww that sucks!!!
With that kind of traffic you should put some ads up and get a better host lol.<<< Please see Forum Guidelines for signature setup. >>>
-
06-23-2005, 07:00 AM #11Web Hosting Master
- Join Date
- Nov 2004
- Posts
- 675
I did exactly that but my own mysql backup is abit old
-
06-23-2005, 07:58 AM #12Web Hosting Master
- Join Date
- Feb 2003
- Posts
- 717
Try this, just put it in your main .htaccess file:
Code:ErrorDocument 404 /index.html