0

Wonder how to make http://example.com instead of http://example.com/drupal? I wanted everything intact without changes.

Searched for answer on google but there seems not to be one.

  • Where you want to change url? Please provide more info – Eugene Aug 8 '14 at 4:20
  • MAy this will happen by copying all data from drupal directory to root and then delete drupal directory – TBI Infotech Aug 8 '14 at 4:41
  • @Mołot - oh oops. understood. next time i will use example.com. – joe Aug 8 '14 at 16:33
1

Follow through these steps hope it could help.

  1. Just copy all the data from drupal directory located on the server to one level up.
  2. Now delete the drupal directory and check the site by running it directly by http://example.com
  3. if it doesn't work, then check in the setting.php and search for the line if defined.

$base_url= "http://example.com/dev";

// Now change this line to

 $base_url = "http://example.com";

OR the other way you can rewrite the base using .htaccess file located at the root.

Hope it will help you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.