Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess files - RewriteRule

Status
Not open for further replies.

blinkl2k

Programmer
Dec 9, 2004
2
GB
Hi, i'm new to htaccess file and I recently read something about rewrite rule. I tried the following:

RewriteRule ^tabs/ /bdb/tabs.php
RewriteRule ^tabs/(bass|drum|guitar|lyrics)/? /bdb/tabs_index.php?filetype=$1
RewriteRule ^tabs/(bass|drum|guitar|lyrics)/([A-Z|8])/? /bdb/tabs_bands.php?filetype=$1&cat=$2
RewriteRule ^tabs/(bass|drum|guitar|lyrics)/([A-Z|8])/([0-9]+)/? /bdb/tabs_songs.php?filetype=$1&bid=$3
RewriteRule ^tabs/(bass|drum|guitar|lyrics)/([A-Z|8])/([0-9]+)/(album|song)/? /bdb/tabs_songs.php?filetype=$1&bid=$3&displayby=$4

but everytime I goto tabs/bass or tabs/guitar it just goes to the same page as if i went to tabs. I'd be greatful if anyone could help tell a solution to this problem. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top