zooki
Active member
Hi, I moved my site over successfully from Vbulletin! -
It used to be in a folder /forum - after I did migration to Xenforo I placed everything in the root, and made redirects. It has been around three weeks since that.
So, right now Xenforo is in the root and I want to move my website back into a folder: /community
I want to use the root for my CMS.
How can I redirect to the folder, whilst also keeping the old vb redirects? Do I need one htaccess in the root? what do i keep in the folder that will hold xenforo?
It used to be in a folder /forum - after I did migration to Xenforo I placed everything in the root, and made redirects. It has been around three weeks since that.
So, right now Xenforo is in the root and I want to move my website back into a folder: /community
I want to use the root for my CMS.
How can I redirect to the folder, whilst also keeping the old vb redirects? Do I need one htaccess in the root? what do i keep in the folder that will hold xenforo?
Code:
# Mod_security can interfere with uploading of content such as attachments. If you
# cannot attach files, remove the "#" from the lines below.
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default
php_value file_uploads on
php_value upload_max_filesize 35971520
php_value post_max_size 35971520
php_value max_input_time 1000
php_value memory_limit 64M
php_value max_execution_time 1000
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
# 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 /xenforo
# This line may be needed to enable WebDAV editing with PHP as a CGI.
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^forum/(.*)$ http://mywebsite.com/$1 [R=301,L]
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]
</IfModule>