Running Mambo 4.6.5 subdirectory

 

You will need

  • Notepad ++ or other freebie editor that allow you to edit php files
  • an FTP client (I use Coffee Cup FTP)
  • Patience

In detail

1. Back up everything if you have not got local copies.
2. Use the FTP client to create the new folder  mambo4.6.5 within httpdocs
3. On your PC create a file called htaccess.root and enter the following code using Notepad++

Redirect /index.php http://www.cornish-funfairs.org.uk/mambo4.6.5

Options -Indexes +SymLinksIfOwnerMatch

RewriteEngine on

RewriteBase /

RewriteCond %{REQUEST_URI} !^/mambo4.6.5/

# Don't apply to URLs that go to existing files or folders

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all those to insert /folder

RewriteRule ^(.*)$ /mambo4.6.5/$1 [L]

5. save this htaccess.root

6. Use your FTP client and move all files and directories under httpdocs to httpdocs/mambo4.6.5

7. Your directory is now empty

8. Use your ftp client to upload the new htaccess.root to the httpdocs directory

9. Rename it as .htaccess (it will then disappear on most servers as this considered a system file)

10. Wait at least 10 minutes.

11. edit the configuration dot php file in the new mambo4.6.5 and change the following lines

$mosConfig_absolute_path and

$mosConfig_cachepath

12. Change permissions on mambo4.6.5/cache to 755

13. close all browsers and delete any cache.

14. log back in

13. et voila - perfect.

 

see alsohttp://wiki.dreamhost.com/Transparently_redirect_your_root_directory_to_a_subdirectory