Forum Moderators: phranque
I am working on a vbulletin forum addon , which is causing me problems. My forum is located in a subfolder, but the rewrite rule is for the root (I assume). I have only little understanding of rewrite rules. Can somebody tell me how I change the rewrite condition below, so that it will work in my subfolder /forum?
# SEO Videos
# [vbulletin.org...]
# ofcourse you can rename videos.html and make it for example a non existing directory /videos/ and /videos/videoindex-20.xhtml etc.
RewriteCond %{HTTP_HOST}!^www\.domain\.com
RewriteRule (.*) [domain.com...] [L,R=301]
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^videos\.html&page=([0-9]+)$ [domain.com...] [L,R=301]
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^videos\.html$ index.php?videos=1 [L]
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^videos-page([0-9]+)\.html$ index.php?videos=$1 [L]