XF 1.5 How to remove the subfolder in URL (.htaccess)

In .htaccess find this line
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
add your custom folders and files to it.
So what you are saying is: Replace the forums into the root folder and add my custom folders/files into that .htaccess line?

What about my own .htaccess which I have now, which takes care of the pages right now?

RewriteRule ^([A-z0-9]+)$ index.php?page=$1

Where am I supposed to place that?
If only index.php conflicts with XenForo files, you can rename it, fiddle with htaccess a bit to redirect old pages to your old php file and the rest of files to XenForo. But if its more files that share names with XenForo files, then probably would be easier to leave everything as is.
If you can adjust your vote script, then sure.

In .htaccess you need to do this: find
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
add your folders there, including vote:
    RewriteRule ^(vote/|bans/|Multicraft/|data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
then after this line
RewriteRule ^.*$ index.php [NC,L]
copy rules from your old .htaccess. Rename your old index.php to something else, in your rule change index.php to new file name.

Code in your old index.php might need adjustments, you must know what to change before doing any changes above. If you don't know what to change there, don't do this.
Top Bottom