![]() |
|
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. |
| |||||||
| 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. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| 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 | |||
| Advertisements |
| | #2 | ||
| 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 > > | |||
| | #3 | ||
| "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 | |||
| | #4 | ||
| 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 > > > > | |||
| Featured Websites | ||||
|
![]() |
| Tags: codes, error, file, htaccess, html, php, using, versus |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
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 | ||||
|