• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Problem with editor after using URL rewrite

I have place my Xenforo installation in a subdirectory (community) and uses a .htaccess to rewrite the URL to the root. (To rewrite example.com/community to example.com)

I have everything working except for the editor. When I click on link or any of the buttons in the editor that has a ajax call, it will load the home page in the overlay instead. Anyone has a better rewrite code for doing the URL rewrite?

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} !^/community/.*$
RewriteRule ^(.*)$ /community/$1

Redirect /admin.php http://example.com/community/admin.php
Not to dismiss your question... but why not just put the forum in the web root?

My rewrite kung fu is weak. Sorry. :(
I find that it is easier for maintenance by putting Xenforo in a sub directory. Just remove the .htaccess file and then the the use immediately go to the root index.

Besides that, I can have a CMS system install at a later point without the need for a move.