• 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

#1
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>
 
#5
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:

View attachment 35586

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