Hello,
I have deleted some records from my site, an now it is showing 404 Error Pages for them. I want whenever 404 Error page will occur it should redirect to Index Page or any other page specified by me.
Thanks
Hello, I have deleted some records from my site, an now it is showing 404 Error Pages for them. I want whenever 404 Error page will occur it should redirect to Index Page or any other page specified by me. Thanks |
You can set it in the .htaccess like this:
ErrorDocument 404 /index.php
You can change /index.php to any file you like.
Hello, I have deleted some records from my site, an now it is showing 404 Error Pages for them. I want whenever 404 Error page will occur it should redirect to Index Page or any other page specified by me. Thanks
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Thanks for the reply mscott. Is there any specific location where I need to place "ErrorDocument 404 /index.php" or can I place it anywhere in .htaccess file. |
You're welcome. I would place it at the very top or very bottom just so it won't get mixed up in all the Dolphin stuff.
Thanks for the reply mscott. Is there any specific location where I need to place "ErrorDocument 404 /index.php" or can I place it anywhere in .htaccess file.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
I'll try that, but in my last try I placed it above to the "<IfModule mod_rewrite.c>", and my site went down showing 500 Internal Server Error. You're welcome. I would place it at the very top or very bottom just so it won't get mixed up in all the Dolphin stuff.
Thanks for the reply mscott. Is there any specific location where I need to place "ErrorDocument 404 /index.php" or can I place it anywhere in .htaccess file.
|
It should work there too. Can you paste exactly the line you added?
I'll try that, but in my last try I placed it above to the "<IfModule mod_rewrite.c>", and my site went down showing 500 Internal Server Error. You're welcome. I would place it at the very top or very bottom just so it won't get mixed up in all the Dolphin stuff.
Thanks for the reply mscott. Is there any specific location where I need to place "ErrorDocument 404 /index.php" or can I place it anywhere in .htaccess file.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
ErrorDocument 404 /index.php It should work there too. Can you paste exactly the line you added?
I'll try that, but in my last try I placed it above to the "<IfModule mod_rewrite.c>", and my site went down showing 500 Internal Server Error. You're welcome. I would place it at the very top or very bottom just so it won't get mixed up in all the Dolphin stuff.
Thanks for the reply mscott. Is there any specific location where I need to place "ErrorDocument 404 /index.php" or can I place it anywhere in .htaccess file.
|
ErrorDocument 404 /index.php
It should work there too. Can you paste exactly the line you added?
I'll try that, but in my last try I placed it above to the "<IfModule mod_rewrite.c>", and my site went down showing 500 Internal Server Error. You're welcome. I would place it at the very top or very bottom just so it won't get mixed up in all the Dolphin stuff.
Thanks for the reply mscott. Is there any specific location where I need to place "ErrorDocument 404 /index.php" or can I place it anywhere in .htaccess file.
|
I was reading the help page on the apache site and I saw that for custom errors to work AllowOverride in the master server config should be set to FileInfo. I think it should work if its set to all also. Do you think your host has the server setup so you can't over ride the error pages?
Here's the info: http://httpd.apache.org/docs/current/custom-error.html BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Thanks for your work mscott. Do you think I need to contact my hosting provider for the same...? I was reading the help page on the apache site and I saw that for custom errors to work AllowOverride in the master server config should be set to FileInfo. I think it should work if its set to all also. Do you think your host has the server setup so you can't over ride the error pages?
Here's the info: http://httpd.apache.org/docs/current/custom-error.html
|
You're welcome. Yes, let your host know what you're trying to do and they can check the master error log and let you know what's causing the 500 error. Let us know what they say in case someone else wants to do this.
Thanks for your work mscott. Do you think I need to contact my hosting provider for the same...? I was reading the help page on the apache site and I saw that for custom errors to work AllowOverride in the master server config should be set to FileInfo. I think it should work if its set to all also. Do you think your host has the server setup so you can't over ride the error pages?
Here's the info: http://httpd.apache.org/docs/current/custom-error.html
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
sure You're welcome. Yes, let your host know what you're trying to do and they can check the master error log and let you know what's causing the 500 error. Let us know what they say in case someone else wants to do this.
Thanks for your work mscott. Do you think I need to contact my hosting provider for the same...? I was reading the help page on the apache site and I saw that for custom errors to work AllowOverride in the master server config should be set to FileInfo. I think it should work if its set to all also. Do you think your host has the server setup so you can't over ride the error pages?
Here's the info: http://httpd.apache.org/docs/current/custom-error.html
|
If you have your own VPS or Dedicated server, you should go to Cpanel WHM area (yoursite.com:2087) to configure landing pages for 404, 500 or whatever error. I did that for one of my site, I moved my host to another company and that setting still carried over. or the easiest way is look for that 404 page and insert a redirection script (very simple one) to send the visitors to the index page.
|
Well, my site is running on shared hosting. Apart from that let me know from where I can put the redirection script If you have your own VPS or Dedicated server, you should go to Cpanel WHM area (yoursite.com:2087) to configure landing pages for 404, 500 or whatever error. I did that for one of my site, I moved my host to another company and that setting still carried over. or the easiest way is look for that 404 page and insert a redirection script (very simple one) to send the visitors to the index page.
|
I contacted my hosting provider and they don't support FileInfo on their servers. As per them this is development issue and they provided 2 links which could be of any help http://www.htaccessbasics.com/404-custom-error-page/ http://www.boonex.com/forums/topic/Custom-404-html-Page.htm You're welcome. Yes, let your host know what you're trying to do and they can check the master error log and let you know what's causing the 500 error. Let us know what they say in case someone else wants to do this.
Thanks for your work mscott. Do you think I need to contact my hosting provider for the same...? I was reading the help page on the apache site and I saw that for custom errors to work AllowOverride in the master server config should be set to FileInfo. I think it should work if its set to all also. Do you think your host has the server setup so you can't over ride the error pages?
Here's the info: http://httpd.apache.org/docs/current/custom-error.html
|
I contacted my hosting provider and they don't support FileInfo on their servers. As per them this is development issue and they provided 2 links which could be of any help http://www.htaccessbasics.com/404-custom-error-page/ http://www.boonex.com/forums/topic/Custom-404-html-Page.htm You're welcome. Yes, let your host know what you're trying to do and they can check the master error log and let you know what's causing the 500 error. Let us know what they say in case someone else wants to do this.
Thanks for your work mscott. Do you think I need to contact my hosting provider for the same...? I was reading the help page on the apache site and I saw that for custom errors to work AllowOverride in the master server config should be set to FileInfo. I think it should work if its set to all also. Do you think your host has the server setup so you can't over ride the error pages?
Here's the info: http://httpd.apache.org/docs/current/custom-error.html
|
anyone who can help in this...? |
Any one who can an |
I tried to search for 404 page for redirection, but didn't get it, please let me know where I can get it and how can I redirect 404 page to any other page (like index page etc...) or the easiest way is look for that 404 page and insert a redirection script (very simple one) to send the visitors to the index page.
|
Anyone who has the solution of this problem...? |
I posted the solution, then your hosting company gave you the same solution (their top link). This is the way to do it, if your server is giving you a 500 error after you do it then you need to ask your hosting company to look at the error long and figure out why.
Anyone who has the solution of this problem...?
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |