Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello everyone,

I have build my website on core php.. and its works fine for me on localhost (Wamp server). but today i just uploaded it online and i am getting this error :-

HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

i am using htaccess on my site and here is my htaccess file code

php_flag display_errors off 
php_flag log_errors On 
php_value error_log Logs/PHPError.log
php_flag html_errors off
php_flag ignore_repeated_errors off
php_flag ignore_repeated_source off
php_flag report_memleaks on
php_flag track_errors on
php_value docref_root 0
php_value docref_ext 0
php_value error_reporting 6143
php_value log_errors_max_len 0
php_value register_globals 0 
php_value session.auto_start 0 
ServerSignature Off
DefaultLanguage en
AddDefaultCharset UTF-8
AddCharset UTF-8 .css
IndexOptions +FancyIndexing
Options +FollowSymLinks -Indexes -ExecCGI
AddHandler application/x-httpd-php .htm
AddHandler application/x-httpd-php .html

<IfModule mod_expires.c>
       ExpiresActive On
       ExpiresByType image/gif A2592000
       ExpiresByType image/png A2592000
       ExpiresByType image/jpeg A2592000
       ExpiresByType image/x-icon A2592000
       ExpiresByType application/pdf A2592000
       ExpiresByType application/x-javascript A2592000
       ExpiresByType text/plain A2592000
       ExpiresByType text/css A10800
</IfModule>

<IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteRule ^404$ 404.php 
       RewriteRule ^home$ index.php
       RewriteRule ^Login$ login.php
</IfModule>
 
ErrorDocument 403 /404.php
ErrorDocument 500 /404.php

<FilesMatch "\.php$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

<FilesMatch "^(index|404)\.php$">
    Order Allow,Deny
    Allow from all
</FilesMatch>


can anyone help me to find out how can i solve this trouble?
i have tried to contact with my hosting provider and they answered me that it is developer problem not hosting problem.. but i notice that i need to enable
"rewrite_module" to use htaccess.. is it that?
Maybe anyone can help me with this..
Thanks in Advance
Posted
Comments
Mohibur Rashid 15-Jul-15 3:08am    
That can be an issue. First try to access your index.php page. if it works then you would know that your page is accessible. Then try for others. And also we don't know your directory structure. Remove the .htaccess and try to access your index.php. Besides, If your local host is windows then check your file name, Linux is case sensitive, as you may know.
UttamRabadiya 15-Jul-15 6:05am    
Hi,
thank you, i have found this problem solution,I had trouble with my web hosting provider.. they suggest me to use web.config instead of .htaccess and its works good.. but i still need to configure web.config file same as .htaccess file... if you have any clue about configure web.config file easily then i would appreciate your help.. thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900