I know mod rewrite url's have been discussed a lot on this forum, but I'm unable to find a solution to my problem.
The forum is installed in a subdirectory of a domain name (www.domain.com/subfolder), and I'm trying to use the Mod Rewrite URL's. I have made sure this is enabled in options, and also followed instructions I found on this forum for .htaccess, and it still doesn't work. It is adding an additional "/forums" to all URL's, which is resulting in 404 errors when you click on a link.
I'm using the .htaccess that is in the do_not_upload folder. I have also tried a few other variations of the .htaccess rewrite rules that I have found posted in this forum, and those resulted in a server error.
Any help would be very much appreciated! Thank you
The forum is installed in a subdirectory of a domain name (www.domain.com/subfolder), and I'm trying to use the Mod Rewrite URL's. I have made sure this is enabled in options, and also followed instructions I found on this forum for .htaccess, and it still doesn't work. It is adding an additional "/forums" to all URL's, which is resulting in 404 errors when you click on a link.
I'm using the .htaccess that is in the do_not_upload folder. I have also tried a few other variations of the .htaccess rewrite rules that I have found posted in this forum, and those resulted in a server error.
Code:
RewriteEngine on # This file is only needed if you have set the Forum Component URL in your admincp and you are # using the mod_rewrite option for friendly urls. If this is the case, copy this file # to your forum component stub directory. # If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your forum component directory. # RewriteBase /forum-stub-directory/ # If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off. # Options -MultiViews RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] # Forum RewriteRule ^threads/.* showthread.php [QSA] RewriteRule ^forums/.* forumdisplay.php [QSA] RewriteRule ^members/.* member.php [QSA]
Comment