šŸ’¾ Archived View for chirale.org ā€ŗ 2008-07-04_100.gmi captured on 2024-08-18 at 17:34:21. Gemini links have been rewritten to link to archived content

View Raw

More Information

ā¬…ļø Previous capture (2024-05-12)

-=-=-=-=-=-=-

Make drupal working in a subdirectory

Put offline the website: go to Administer \> Site Maintenance

Backup your codebase (Select all \> Compress via Cpanel: remember to put your backup file outside public_html to prevent download)

Move codebase via File Manager:

-   Go to CPanel \> File Manager
-   Create a new directory (e.g. `drupal57`)
-   Use ā€œSelect allā€ to check all codebase files, then deselect
    drupal57
-   Move all selected files to `drupal57`, including .htaccess file

All privileges will be maintained.

Now, create an empty .htaccess file on public_html (note: if you have chosen PHP rendering via FastCGI, you have to go to PHP Configuration and set your preferences, Itā€™ll be add a new line on your .htaccess on public_html, creating it if necessary)

Add new .htaccess lines following the HostMonsterā€™s How to make a subfolder the main folder for your main domain.

How to make a subfolder the main folder for your main domain

Edit drupal57/.htaccess (via file manager or locally) uncommenting RewriteBase and setting it to /drupal57 (e.g. RewriteBase /drupal57) Update: errors occurs when used by other subdomains: do not use

Edit drupal57/sites/yoursite.com/settings.php and uncomment $base_url line (e.g. $base_url = ā€˜http://www.yoursite.com’; )

Update: This is useful when used on main domain (yoursite.com, http://www.yoursite.com) following step (5). - If you want main domain (e.g. yoursite.com) and subdomain (e.g. mysub.yoursite.com) to display the same content, you have to leave this line uncommented - When you transform your main domain into a subdomain (e.g. when you have a brand new site to promote to main domain), you have to comment this line.

http://www.yoursite.com&#8217

http://www.yoursite.com

Put your site online

Now try to navigate your site. Your URLs are the same you had before moving your files.

https://web.archive.org/web/20080704000000*/http://www.hostmonster.com

https://web.archive.org/web/20080704000000*/http://helpdesk.hostmonster.com/kb/index.php?x=&mod_id=2&id=308

https://web.archive.org/web/20080704000000*/http://www.yoursite.com&#8217

)<br /> Update: This is useful when used on main domain (yoursite.com, <a href=

https://web.archive.org/web/20080704000000*/http://www.yoursite.com

following step (5).</p> <ul> <li>If you want main domain (e.g. yoursite.com) <strong>and</strong> subdomain (e.g. mysub.yoursite.com) to display the same content, you have to leave this line uncommented</li> <li>When you transform your main domain into a subdomain (e.g. when you have a brand new site to promote to main domain), you have to comment this line.</li> </ul> </li> <li>Put your site online</li> </ol> <p>Now try to navigate your site. Your URLs are the same you had before moving your files.</p>