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

XF 1.1 I want set url, help me

Discussion in 'Installation, Upgrade, and Import Support' started by wichern.k, Oct 13, 2012.

  1. wichern.k

    wichern.k Member

    Forum install to part domain/public_html/forum. I do not have a web page url www.domain/forum. But have a page url www.domain/forum/forum.
    file .htaccess
    Code:
    <IfModule mod_rewrite.c>
        RewriteEngine On
        #    If you are having problems with the rewrite rules, remove the "#" from the
        #    line that begins "RewriteBase" below. You will also have to change the path
        #    of the rewrite to reflect the path to your XenForo installation.
        RewriteBase /forum
     
        #    This line may be needed to enable WebDAV editing with PHP as a CGI.
        #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
     
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
        RewriteRule ^$ http://[URL='http://www.domain/forum/forum']www.domain[/URL].com [R=301,L]
    </IfModule>
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresDefault "access plus 1 seconds"
        <FilesMatch "\\.(ico|jpe?g|png|gif|swf|css|js)$">
            ExpiresDefault "access plus 2692000 seconds"
        </FilesMatch>
        <FilesMatch "\\.(x?html?|php|cgi|pl|htm)$">
            ExpiresDefault "access plus 600 seconds"
        </FilesMatch>
    </IfModule>
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I don't understand the question. What are you trying to do?
     
  3. wichern.k

    wichern.k Member

  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Oh I see. You have a /forum directory and a "forum" route. That results in "/forum/forum" in the URL.

    The "forum" route is created by this option in XenPorta:

    Screen shot 2012-03-08 at 6.32.06 PM.png

    You can disable that option to get rid of the "forum" route. Or you may wish to rename that route to something else in which case you can use this addon:

    http://xenforo.com/community/resources/route-changer.447/
     
  5. wichern.k

    wichern.k Member

    I install addon route-changer, but problem was not successful.
    Problem url www.hondajazzhybridclub.com/forum/forum. When install XenPorta and ****** Advanced Forum Statistics, Url normal it www.hondajazzhybridclub.com/forum.
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The Route Changer has a conflict with XenPorta that is described on this page:

    http://xenforo.com/community/resources/route-changer.447/

    You need to disable the route swap in XenPorta before using the Route Changer.

    Or instead of changing the routes you could move XenForo to the web root to remove the /forum directory.
     

Share This Page