Muldrick Posted October 5, 2006 Posted October 5, 2006 I built my OSC site at www.myweb.com/new. Then moved my completed site to www.myweb.com Of course I now get a 404 error when people go to old pages like www.myweb.com/certain_page.htm. Where is it, or, how do I change the 404 page so people don't see the generic "ERROR404 page can't be found". I want to put something more custom/nicer on those old pages, that directs them to the new site. (www.myweb.com)
rick-b Posted October 5, 2006 Posted October 5, 2006 Add this to /.htaccess: ErrorDocument 403 /index.html ErrorDocument 404 /index.html ErrorDocument 500 /index.html ErrorDocument 401 /index.html you can change the /index.html to what every page you want.... but you need to keep the / The Coral Room ...store coming soon! 56 contibs added 28 custom creations + additions 6 future contribs 10+ tasks to complete
Muldrick Posted October 5, 2006 Author Posted October 5, 2006 hmmm, used smartftp and downloaded the file. I edited it and added what u said. It didn't do much, now an error page shows this: Not Found The requested URL /obdII_main.htm was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I then downloaded the modified .htaccess file, and I'm unable to edit it back to the way it was. Its a "Read only file" I tried to rename the .htacces.bak to .htaccess. That won't work, says I must type a file name. :'(
steve_s Posted October 5, 2006 Posted October 5, 2006 try this way then ErrorDocument 404 http://www.myweb.com/index.php ErrorDocument 302 http://www.myweb.com/index.php ErrorDocument 301 http://www.myweb.com/index.php ErrorDocument 302 http://www.myweb.com/index.php ErrorDocument 400 http://www.myweb.com/index.php ErrorDocument 302 http://www.myweb.com/index.php ErrorDocument 500 http://www.myweb.com/index.php ErrorDocument 403 http://www.myweb.com/index.php although creating a 404 file would be better saying you have moved the site and do a search for the product ie a full oscommerce page to see what i mean visit http://white-nova.co.uk/404.php
Muldrick Posted October 6, 2006 Author Posted October 6, 2006 Do I put those lines in my .htaccess file? Could you please show me an example of the edited text?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.