0

I have a website running on ExpressionEngine and a custom backoffice based on Zend. Both approaches expect a specific htaccess file placed in the root.

This is my structure.

Before placing the backoffice on a subdomain, I wanted to know if it's possibile to have one htacces file and to apply a different set of htaccess rules based on the uri. So eg. everything with "backoffice" gets different rules.

I know you can do stuff like this: Best I've found was the following Can I do an if/then/else in htaccess? But I'm stuck with defined the variables based on the uri.

Thanks for your help.

regards Vic

Community
  • 1
  • 1
Vic
  • 36
  • 5

1 Answers1

0

Put your rewrite rules for EE first and add a rule for the back office there:

RewriteCond %{REQUEST_URI} !/backoffice
RewriteRule ^ /index.php [L]

And now add the rules for the back office.

fuxia
  • 62,923
  • 6
  • 54
  • 62
  • Tnx for your answer. Another subdomain was still necessary, because there were 2 different index.php files needed, one for Zend and one for EE. – Vic May 23 '11 at 15:47