-1

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

Searched for an answer on Google, but there seems to not be one.

  • 1
    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
  • 2
    Does this answer your question? How do I run a site from a sub-directory? – sonfd 13 hours ago
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.

| improve this answer | |

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.