I recently added my custom 404 page for my site as my site have custom domain,few days ago it automaticlly redirects to X10hosting.com's 404page which sucks! so is it an error?
I recently added my custom 404 page for my site as my site have custom domain,few days ago it automaticlly redirects to X10hosting.com's 404page which sucks! so is it an error?
1. Did the custom 404 ever work?
2. Direct link to custom 404?
3. Contents of your .htaccess ?
Nothing is always absolutely so.
Yes it was working before recently i added some stuff in .htacces to remove .html and php extensions from pages ...so can you figure out any way to solve it?
If you post the contents of .htaccess file (between CODE tags), I can possibly help.
Nothing is always absolutely so.
There's just a code to remove the ,html and .php extension! below are all code in that file!
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule (.*) $1.html [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule (.*) $1.php [L]
After that, add:
ErrorDocument 404 /error/404.html
where /error/404.html is the path to your error document. (in this case it is named 404.html and is located in a directory error in public_html )
Nothing is always absolutely so.
Thanks man!!