Quote:
Originally Posted by webmastersun
I tried your code but it didn't work
or it redirected to /category/ but die in 1 music note
here's my htaccess code, it is code from vbulletin
Code:
# Options -MultiViews
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^blogs/.* blog.php [QSA]
RewriteRule ^entries/.* entry.php [QSA]
# Forum
RewriteRule ^threads/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^members/.* member.php [QSA]
Honestly i don't want url redirections by htaccess, which I need is, when hover on forums (forumdisplay) then it was ..../category/...
Thanks
|
Erm not sure if that will work then w/o something like DBSEO. Reason is look at your code above ^ ... see the RewriteRule ^forums/.* forumdisplay.php [QSA] part of it? That tells it to rewrite forumdisplay.php in url to /forums/ and this is why many sites have forum/forums/ in the url which many do not like (as it looks quite silly honestly) so the only way to change it from what I recall w/o a mod like dbseo... would be to change that actual line.
Example:
Change this:
Code:
RewriteRule ^forums/.* forumdisplay.php [QSA]
TO:
Code:
RewriteRule ^category/.* forumdisplay.php [QSA]
However after checking please note the url, ensure this is a change you wish to make and that it's what you were originally asking for. The reason why mods like dbseo exist is because you can't do everything with rewrites in normal mod-rewrite friendly url setting and .htaccess, you can come pretty darn close but sometimes a mod/plugin is required and unless someone chimes in soon and puts me in my place I'll stick to my guns in my statement

.