COAddOns project site-Add-Ons for MiaCMS, Mambo & Joomla CMS

 Home arrow FAQs arrow How-To arrow How to run Mambo in a folder but look like from the "webroot"?
Pick Language to Auto Translate:
AR | BG | CA | CS | DA | DE | EL | ES | FI | FR | HI | HR | ID | IT | IW | JA | KO | LV | LT | NO | NL | PL | PT | RO | RU | SK | SR | SL | SV | TL | UK | VI | ZH | ZT
SiteMap :: Contact Us :: About Us :: Member Blog :: Newsfeeds :: How-To :: News :: CMS Info :: MosNews :: Web Tools :: IRC Chat  

Main Menu
Home
Forums
Downloads
CMS Category
Web Links
FAQs
Blog
MoseCMS
COAddOns Wiki
COAddOns Docs
Drupal resources
Who's Online
We have 495 guests online
MosCmenuTree

FAQs

Feature Sites
Web Hosting
Q's quickdeals
OpensourceCMS
CMS Matrix
Joomla Extensions
Joomla Templates
Login Form
Username

Password

Remember me
Password Reminder
No account yet? Create one
Donate
Support OngETC in making a small donation:
Syndicate

MosNewsWriter

How to run Mambo in a folder but look like from the "webroot"? Print E-mail
User Rating: / 3
PoorBest 

Note: This is not intend to be a Rewrite Rules tutorial!  This is for those that look for a quick working solution!  You can see the full detail of URL Rewriting Engine and the URL Rewrite Guide.

I have a need to run my Mambo install from a folder call "mambo" but look like from the "webroot".  Another word eventhough my Mambo is in "mambo" folder but you can access it via the normal http://ongetc.com, for example.

What are the steps that will make this work for me?

. The first thing is to install your Mambo in a folder call "mambo"
. Next is to use Apache "Rewrite Rules" by using the ".htaccess" file in your "webroot"

** The content of my working .htaccess file ***
RewriteEngine On
RewriteOptions inherit

# if it's not a real file
RewriteCond %{SCRIPT_FILENAME} !-f
# rewrite to the subdirectory
RewriteRule !^mambo(/?|/.+)$ /mambo%{REQUEST_URI} [L]
** The content of my working .htaccess file ***

Here are some quick explanation of the above file:
. Turn on the Rewrite engine
. Use Rewrite inheritant
. If it is not file then process the rule below
. The rule is any string start with "mambo" and anything follow it will be rewrited using the content of %{REQUEST_URI} variable excluding the word "mambo"
. "L" mean this is the last rule

With above rule it will make your Mambo URL look like it is still in the "webroot" rather than the "mambo" folder.

Enjoy!
Comments

There are no comments yet. Feel free to add one using the form below.

You are not authorized to leave comments. Please login first.
<Previous   Next>




Sponsors

Reseller hosting (free)

000webhost (free)

HostUpon (w/ ssh)

Hosting24 (w/ ssh)

Free TK domain

CO.CC:Free Domain

Get Chitika Premium

Free Windows Hosting


Credit Counseling - Credit Consolidation - click fraud protection - United Specialties
Validate XHTML
Validate CSS