Hi,

Thank you to an amazing Drupal Community here. It has been a great help to build our website on Drupal. But we have a specific issue:

Our website is on the current url: https://iasmantra.com/dev-dgb/web/
(The public-html folder has many other websites, then in dev-dgb folder within the web folder the drupal files are)

The problem is that the site is to be opened on https://iasmantra.com/dev-dgb/ instead of https://iasmantra.com/dev-dgb/web/

How would this be possible please? I have tried the 'RewriteBase /web' in the htaccess file, but it does not work. Have also tried some solutions from web but does not work.

Requesting help here please.

Best

Comments

mmjvb’s picture

Assuming Apache as the webserver is not mentioned.

The proper way would probably using a subdomain pointing to the right folder. But, when you prefer it the way you ask, try an alias. An alias for dev-dgb pointing to the web folder containing drupal web.

You would probably need RewriteBase /dev-dgb to make sure all links include it. It is used when the code provides a relative link. 

It should be able to do this with rewrite rules in .htaccess. But, due to the way Drupal works that becomes more difficult, I'll leave that to others that have that actually running.

mitpatoliya’s picture

In settings.php you need to set $base_url to point to URL you want.

Also changes in .htaccess as mentioned above.