<div dir="ltr">Hi,<br><br>I have the following rewrite rules in my vbulleting forums .htaccess file (previously it was hosted at a apache web server and was working fine )<br><br>====================<br><br>RewriteEngine on<br>
RewriteRule ^([a-z0-9_\-]*-(f|all)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ forumdisplay.php/$1 [QSA,L]<br>RewriteRule ^([a-z0-9_\-]*-(t|p)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ showthread.php/$1 [QSA,L]<br>RewriteCond %{REQUEST_URI} !(index\.php|\.css) [NC]<br>
RewriteRule ^(archive|sitemap)/(.*)$ $1/index.php/$2 [QSA,L]<br>===================<br><br>I tried to convert this like<br>========================<br>location /forum/ {<br><br>rewrite ^/([a-z0-9_\-]*-(f|all)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ forumdisplay.php/$1 last;<br>
rewrite ^/([a-z0-9_\-]*-(t|p)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ showthread.php/$1 last;<br><br>}<br clear="all"><br>=========================<br><br>But this is giving me a 404 error on form threads and posts<br><br>Please let me know the rewrite rules that is equivalent to the apache one<br>
<br>Thanks in advance<br>-- <br>Anoop P Alias (PGP Key ID : 0x014F9953)<br>GNU system administrator<br><a href="http://GnuSys.net">http://GnuSys.net</a><br>
</div>