PDA

View Full Version : htaccess - url rewrite help


sincere5459
10-10-2012, 06:47 PM
i want to know if this is my url for my forum and here is the information inside my htaccess file is there any way i can either
remove the thread/post id from the url or at least move it to the back of the url i really just want the title in the url

http://www.rimsforum.com/forums/2-Wheel-and-Rim-Brands

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]

Simon Lloyd
10-12-2012, 02:10 AM
I think that rewrite is done by vbseo (or a similar program) if you have vbseo you'd need to change how it looks there.

sincere5459
10-12-2012, 04:25 PM
i dont have vbseo i'm using a normal htaccess rewrite

Simon Lloyd
10-12-2012, 04:54 PM
Ooops forgot this was vb4 and has it's own seo friendly url's! look here https://www.vbulletin.com/docs/html/main/options_seofriendly_urls

Lynne
10-12-2012, 07:30 PM
He wants to get rid of the postid/threadid in the URL which is not possible in default vbulletin or through simple .htaccess. You need plugins also and that is something you would get through something like vbseo.