C5 in a subfolder doesn't work?

Permalink
hi

Is it possible that C5 doesn't work in a subfolder, when i like to hidde the subfolder name in the URL? I have try all, with no luck.

I hope someone can help me.

my site:http://www.around.ch
my momentary first htaccess in the root directory:

RewriteCond %{HTTP_HOST} ^around.ch$ [OR] 
RewriteCond %{HTTP_HOST} ^ww.around.ch$ 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^(.*)$ /around/$1 [PT,QSA]


my momentary htaccess in the C5 subdirectory -> /around/

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ /index.php/$1 [L]
   </IfModule>


Now i change in the site.php('DIR_REL', '/around'); to
define('DIR_REL', '');

Now i can open pages like:

http://www.around.ch/about
http://www.around.ch/examples

but not page's they need the index.php like the home and edit window.

When i change DIR_REL back to('DIR_REL', '/around'); C5 works great. But i have in my links /around/ thats not good ;)

Have someone a solution for this problem? I have searched the forum but no solution worked for me :-|

Thanks

marius

marius
 
marius replied on at Permalink Reply
marius
Now i try this htaccess:

htaccess from:http://www.concrete5.org/community/forums/customizing_c5/fyi_domain...

RewriteCond %{HTTP_HOST} ^around.ch$ [OR] 
RewriteCond %{HTTP_HOST} ^ww.around.ch$
RewriteCond %{REQUEST_URI} !^/around/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /around/$1
RewriteCond %{HTTP_HOST} ^ww.around.ch$
RewriteRule ^(/)?$ around/index.php/$1 [L]


all works except the edit site displays:
No page could be found at this address.

:-/