httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah <adm...@enabled.com>
Subject [users@httpd] best apache config for joomla site
Date Tue, 30 Jan 2007 23:43:51 GMT
apache-2.0.0.1
joomla-1.0.12


So I want to keep the joomla directory in a path that has nothing to do 
with the site's DocumentRoot.  I am assuming this brings more security.  
But what I'd like to do is take out the need for joomla to be nested in 
the http://www.site.com/main URL

I'd like joomla to appear without 'main' in the URL - like 
http://www.site.com/

how would I configure my httpd.conf file to allow this behavior.



---- config ----

        DocumentRoot /a/www/data/www.site.com

        Alias /main /a/www/joomla/

        RewriteEngine on
        RewriteCond %{REQUEST_METHOD} !^(GET|POST|HEAD)$
        RewriteRule .* - [F]

        Redirect permanent /index.html http://www.site.com/main

---- config ----



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message