.htaccess 2.8 KB
Newer Older
1
Options +FollowSymLinks -MultiViews
jurgbohn's avatar
jurgbohn committed
2 3
RewriteEngine on

4 5 6 7
RewriteRule ^user/([^/]+)/?$					user-profile.php?user=$1			[NC,QSA]
RewriteRule ^user/([^/]+)/recent-tracks/?$			user-recent-tracks.php?user=$1			[NC,QSA]
RewriteRule ^user/([^/]+)/stats/?$				user-stats.php?user=$1				[NC,QSA]
RewriteRule ^user/([^/]+)/station/?$				user-station.php?user=$1			[NC,QSA]
Jonas Haraldsson's avatar
Jonas Haraldsson committed
8 9 10 11 12 13 14 15 16 17
RewriteRule ^user/([^/]+)/library/?$				user-library.php?user=$1			[NC,QSA]
RewriteRule ^user/([^/]+)/library/music/?$			user-library.php?user=$1&section=music		[NC,QSA]
RewriteRule ^user/([^/]+)/library/scrobbles/?$			user-library.php?user=$1&section=scrobbles	[NC,QSA]
RewriteRule ^user/([^/]+)/library/loved/?$			user-library.php?user=$1&section=loved		[NC,QSA]
RewriteRule ^user/([^/]+)/library/banned/?$			user-library.php?user=$1&section=banned		[NC,QSA]
RewriteRule ^user/([^/]+)/library/tags/?$			user-library.php?user=$1&section=tags		[NC,QSA]
RewriteRule ^user/([^/]+)/library/tags/([^/]+)/?$		user-library.php?user=$1&section=tags&tag=$2	[NC,QSA]
RewriteRule ^user/([^/]+)/library/music/([^/]+)/?$		user-library.php?user=$1&section=music&artist=$2	[NC,QSA]
RewriteRule ^user/([^/]+)/library/music/([^/]+)/([^/]+)/?$	user-library.php?user=$1&section=music&artist=$2&album=$3	[NC,QSA]
RewriteRule ^user/([^/]+)/library/music/([^/]+)/_/([^/]+)/?$	user-library.php?user=$1&section=music&artist=$2&track=$3	[NC,QSA]
18
RewriteRule ^artist/([^/]+)/track/([^/]+)/edit/?$		track-add.php?artist=$1&track=$2		[NC,QSA]
19
RewriteRule ^artist/([^/]+)/track/([^/]+)/tag/?$		track-tag.php?artist=$1&track=$2		[NC,QSA]
20 21 22
RewriteRule ^artist/([^/]+)/track/([^/]+)/?$			track.php?artist=$1&track=$2			[NC,QSA]
RewriteRule ^artist/([^/]+)/album/([^/]+)/track/add/?$		track-add.php?artist=$1&album=$2		[NC,QSA]
RewriteRule ^artist/([^/]+)/album/([^/]+)/track/([^/]+)/edit/?$	track-add.php?artist=$1&album=$2&track=$3	[NC,QSA]
23
RewriteRule ^artist/([^/]+)/album/([^/]+)/track/([^/]+)/tag/?$	track-tag.php?artist=$1&album=$2&track=$3	[NC,QSA]
24 25
RewriteRule ^artist/([^/]+)/album/([^/]+)/track/([^/]+)/?$	track.php?artist=$1&album=$2&track=$3		[NC,QSA]
RewriteRule ^artist/([^/]+)/album/add/?$			album-add.php?artist=$1				[NC,QSA]
26
RewriteRule ^artist/([^/]+)/album/([^/]+)/edit/?$		album-add.php?artist=$1&album=$2		[NC,QSA]
27 28 29 30 31 32 33 34 35
RewriteRule ^artist/([^/]+)/album/([^/]+)/?$			album.php?artist=$1&album=$2 			[NC,QSA]
RewriteRule ^artist/([^/]+)/?$					artist.php?artist=$1				[NC,QSA]
RewriteRule ^artist/([^/]+)/manage/?$				artist-manage.php?artist=$1			[NC,QSA]
RewriteRule ^artist/([^/]+)/tag/?$				artist-tag.php?artist=$1			[NC,QSA]
RewriteRule ^country/([^/]+)/?$					location.php?country=$1				[NC,QSA]
RewriteRule ^logout 						login.php?action=logout				[NC,QSA]
RewriteRule ^listen 						listen.php					[NC,QSA]
RewriteRule ^music 						popular.php					[NC,QSA]
RewriteRule ^tag/([^/]+)/?$					tag.php?tag=$1					[NC,QSA]