| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #2 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,074
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | i take it you mean you want the shtml site to be the 1 it goes to if someone types in www.domain.com if so simply do the following:- creat a text document and put the following into it (changing page.shtml to whatever the page is called):- Code: DirectoryIndex page.shtml ????: NamePros.com http://www.namepros.com/programming/47483-redirect-404-a.html More info can be found at http://httpd.apache.org/docs/howto/htaccess.html
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft |
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Apr 2004
Posts: 1,189
![]() ![]() ![]() | if someone types in www.1320info.com/asdlhglksgakjdhg.html i want it to go to www.1320info.com/index2.php |
| |
| | #4 (permalink) | ||||
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() |
ErrorDocument 404 http://www.yourdomain.ext/pageyouwantredirectedto.html | ||||
| |
| | #7 (permalink) | ||||
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,074
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
__________________ Manage your portfolio using my new Domain Portfolio Management script. Securing Your Domain Name From Theft | ||||
| |
| | #8 (permalink) |
| NamePros Regular Join Date: Sep 2004 Location: Poland
Posts: 245
![]() | Use: Code: ErrorDocument 404 yourscript.php Code: <?php
header("HTTP/1.0 301 Moved");
header("Location: index2.php");
?>
__________________ Dropcatcher.de - .de domain dropcatching!
Last edited by Michau; 10-02-2004 at 03:36 AM.
|
| |
| | #9 (permalink) | ||||
| NamePros Regular Join Date: Feb 2004
Posts: 720
![]() ![]() |
| ||||
| |
| | #10 (permalink) |
| NamePros Regular Join Date: Sep 2004 Location: Poland
Posts: 245
![]() | OOps, one little mistake Should be "HTTP/1.0 301 Moved", not "HTTP/1.0 31 Moved".
__________________ Dropcatcher.de - .de domain dropcatching! |
| |