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