Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > PHP
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 4:19 PM   #1
Gil
 
Gil's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Using PHP for HTML error codes versus .htaccess file

I need your help if possible.

I recently started to understand the PHP scripts that can be use to
control pages and information.

However, we recently "redo" all of our HTML pages, deleted a
bunch....here is the question:

On our Web Hosting, they have a file call ".htaccess" that can be used
to handle "ErrorDocument: 404" http://www.yourdomain.com/notfound.html

Accordinly to their instruction, it is seems to be much difficult to
mange and I was wondering if possible to handle this through PHP?

I know our web pages that are gone are still "cache" on Search Engines
web site and I know customer are clicking on it and get an Error Message.

Any insight or help is greatly apprecaited.

Thanks

Gil


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Advertisements
Old 07-01-2007, 4:19 PM   #2
Gil
 
Gil's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Using PHP for HTML error codes versus .htaccess file

here is a sample of the code in the .htaccess file

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.myhost.com
AuthUserFile /XX/myhost/_vti_pvt/service.pwd
AuthGroupFile /XX/myhost/_vti_pvt/service.grp

Where would I put the errorcodes like below to the above string?

ErrorDocument 404 http://www.myhost.com/notfound.htm
ErrorDocument 301 http://www.myhost.com/notfound.htm
ErrorDocument 302 http://www.myhost.com/notfound.htm
ErrorDocument 304 http://www.myhost.com/notfound.htm
ErrorDocument 400 http://www.myhost.com/notfound.htm
ErrorDocument 403 http://www.myhost.com/notfound.htm

Any help is very much appreciated ! !

Gil




Gil wrote:

> I need your help if possible.
>
> I recently started to understand the PHP scripts that can be use to
> control pages and information.
> However, we recently "redo" all of our HTML pages, deleted a
> bunch....here is the question:
>
> On our Web Hosting, they have a file call ".htaccess" that can be used
> to handle "ErrorDocument: 404" http://www.yourdomain.com/notfound.html
>
> Accordinly to their instruction, it is seems to be much difficult to
> mange and I was wondering if possible to handle this through PHP?
>
> I know our web pages that are gone are still "cache" on Search Engines
> web site and I know customer are clicking on it and get an Error Message.
>
> Any insight or help is greatly apprecaited.
>
> Thanks
>
> Gil
>
>


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 4:20 PM   #3
Pauper
 
Pauper's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Using PHP for HTML error codes versus .htaccess file

"Gil" <gilbertn@biolok.com> wrote in message
news:UXSYa.6112$AO3.725@fe02.atl2.webusenet.com...
| On our Web Hosting, they have a file call ".htaccess"
| that can be used to handle "ErrorDocument: 404"
| http://www.yourdomain.com/notfound.html

Try the following:
ErrorDocument 404 http://www.yourdomainname.com/custom404page.html
All you need is the one line in the .htaccess file, no need to script
it.
Put it at the top, above everything else so the page isn't locked out
by any later rules
for more info, take a look at http://www.devarticles.com/art/1/124/2

You should also modify that custom404page,html to tell surfers that
* the link you followed is out of date - we've changed our site
around a lot!
* click HERE to go to the new site home page and search for the
page you want from there

or something along those lines!

Hope that helps!

D


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 5:03 PM   #4
Gil
 
Gil's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Using PHP for HTML error codes versus .htaccess file

Thanks Pauper! just what I was looking for.

Gil


Pauper wrote:

>"Gil" <gilbertn@biolok.com> wrote in message
>news:UXSYa.6112$AO3.725@fe02.atl2.webusenet.com.. .
>| On our Web Hosting, they have a file call ".htaccess"
>| that can be used to handle "ErrorDocument: 404"
>| http://www.yourdomain.com/notfound.html
>
>Try the following:
>ErrorDocument 404 http://www.yourdomainname.com/custom404page.html
>All you need is the one line in the .htaccess file, no need to script
>it.
>Put it at the top, above everything else so the page isn't locked out
>by any later rules
>for more info, take a look at http://www.devarticles.com/art/1/124/2
>
>You should also modify that custom404page,html to tell surfers that
> * the link you followed is out of date - we've changed our site
>around a lot!
> * click HERE to go to the new site home page and search for the
>page you want from there
>
>or something along those lines!
>
>Hope that helps!
>
>D
>
>
>
>



 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags: , , , , , , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Look what happens when you mess with the .htaccess file! Ian.H [dS] PHP 2 07-01-2007 3:36 PM
embedded php in html file, how to tell calling html file? MeNotHome PHP 1 07-01-2007 3:17 PM
HTML FONT codes modric HTML 1 08-01-2006 12:27 AM
HTML COLOR codes modric HTML 7 08-01-2006 12:07 AM


Featured Websites




All times are GMT +1. The time now is 1:13 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98