404 Page?

Status
Not open for further replies.

friendus50

New Member
Messages
25
Reaction score
0
Points
0
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?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
1. Did the custom 404 ever work?
2. Direct link to custom 404?
3. Contents of your .htaccess ?
 

friendus50

New Member
Messages
25
Reaction score
0
Points
0
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?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
If you post the contents of .htaccess file (between CODE tags), I can possibly help.
 

friendus50

New Member
Messages
25
Reaction score
0
Points
0
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]
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
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 )
 
Status
Not open for further replies.
Top