404 errors for pages other than homepage when uploaded to web-server I and new to php and I got started with drupal and this is my demo site http://sugandha.net63.net/ Yea and it works but when I try to click on any link it throws 404error message. What might be the problem? It works fine in localhost.

My setting is as follows :

$databases = array (
  'default' =&gt; 
  array (
    'default' =&gt; 
    array (
      'database' =&gt; 'a2256974_drupal',
      'username' =&gt; 'username',
      'password' =&gt; 'pwd',
      'host' =&gt; 'mysql1.000webhost.com',
      'port' =&gt; '',
      'driver' =&gt; 'mysql',
      'prefix' =&gt; '',
    ),
  ),
); 


This is my database setting and     

 # $base_url = 'http://www.example.com';  // NO trailing slash!
Do you have an .htaccess file in your root of your installation?

Its one of the most common problems because its a hidden file and people keep missing uploading it to their web server


if you have the .htaccess file then its got to be your base url..change it like Jorge Córdoba said...


Uncomment (remove #) and change example.com...Like this: 

# $base_url = 'http://www.example.com';  // NO trailing slash!

to

$base_url = 'http://sugandha.net63.net';  // NO trailing slash!


if it still doesn't work:


try using ?q= before the relative url..eg:

http://sugandha.net63.net/admin to http://sugandha.net63.net/?q=admin

if that works then you have to disable clean urls on the online installation