1. 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

Discussion in 'XenForo Questions and Support' started by Andy To, Apr 13, 2011.

  1. Andy To

    Andy To Member

    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?

    Code:
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    
    RewriteCond %{REQUEST_URI} !^/community/.*$
    RewriteRule ^(.*)$ /community/$1
    
    Redirect /admin.php http://example.com/community/admin.php
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Not to dismiss your question... but why not just put the forum in the web root?

    My rewrite kung fu is weak. Sorry. :(
     
  3. Andy To

    Andy To Member

    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.
     

Share This Page