You are not logged in.
Pages: 1
Hey guys,
I really have a hard time running multiple subfolders, and having the main address to my website at domain.com. Since I have multiple folders, I moved my drupal into ./drupal, I also have cgit web repository at ./cgit. I carefully studied this page and tried to setup a .htaccess in my root: http://drupal.org/node/135206. To access my website I now need to type domain.com/drupal, I would like it be just domain.com. I tried this:
RewriteEngine on
#
# stuff to let through (ignore)
RewriteCond %{REQUEST_URI} "/cgit/"
RewriteRule (.*) drupal/$1 [L]However now domain.com/cgit is not accessible. How can I fix this?
Offline
If I understand you correctly, you want to redirect anything EXCEPT cgit/, dirA/, dirB/, dirC/ etc to /drupal/?
You need to negate the RewriteCond so it doesn't apply to the RewriteRule.
RewriteEngine on
#
# stuff to let through (ignore)
RewriteCond %{REQUEST_URI} !^/cgit/
RewriteCond %{REQUEST_URI} !^/dirA/
RewriteCond %{REQUEST_URI} !^/dirB/
RewriteCond %{REQUEST_URI} !^/dirC/
RewriteRule ^(.*)$ /drupal/$1 [last, redirect=permanent]Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Thank you very much fukawi2! Looks like that's what I need. I have moved drupal back to ./ and left cgit in ./cgit. But now since you posted this it might do the trick
.
Offline
Pages: 1