kavod/jjgfamille/master/www/disco/.htaccess - Htaccess File

kavod/jjgfamille/master/www/disco/.htaccess

# fichier .htaccess
RewriteEngine on
RewriteRule ^goldman_albums_([^.]+).html$ /disco/albums.php?mode=$1 [L]
RewriteRule ^goldman_albums_([^.]+).html?(.*)$ /disco/albums.php?mode=$1&$2 [L]
RewriteRule ^(.+)_albums_([^_]+)_([0-9]+).html$ /disco/albums.php?mode=$2&artist_id=$3 [L]
RewriteRule ^(.+)_albums_([^_]+)_([0-9]+).html?(.*)$ /disco/albums.php?mode=$2&artist_id=$3&$4 [L]

RewriteRule ^goldman_album_([0-9]+)_([^.]+).html$ /disco/view_album.php?album_id=$1 [L]
RewriteRule ^goldman_album_([0-9]+)_([^.]+).html?(.*)$ /disco/album.php?album_id=$1&$2 [L]

RewriteRule ^goldman_paroles_([0-9]+)_([0-9]*)_(.*).html$ /disco/lyrics.php?song_id=$1&album_id=$2 [L]
RewriteRule ^goldman_paroles_([0-9]+)_([0-9]*)_(.*).html?(.*)$ /disco/lyrics.php?song_id=$1&album_id=$2&$4 [L]

RewriteRule ^goldman_jaquettes_([0-9]+)_(.*).html$ /disco/jaquettes.php?album_id=$1 [L]
RewriteRule ^goldman_jaquettes_([0-9]+)_(.*).html?(.*)$ /disco/jaquettes.php?album_id=$1&$3 [L]

RewriteRule ^goldman_partitions_([0-9]+)_([0-9]*)_(.*).html$ /disco/partition.php?song_id=$1&album_id=$2 [L]
RewriteRule ^goldman_partitions_([0-9]+)_([0-9]*)_(.*).html?(.*)$ /disco/partition.php?song_id=$1&album_id=$2&$4 [L]

RewriteRule ^goldman_singles_(.+).html$ /disco/singles.php?annee=$1 [L]
RewriteRule ^goldman_singles_(.+).html?(.*)$ /disco/singles.php?annee=$1&$2 [L]
RewriteRule ^goldman_singles.html$ /disco/singles.php [L]
RewriteRule ^goldman_singles.html?(.*)$ /disco/singles.php?$1 [L]

RewriteRule ^goldman_liste_chansons.html$ /disco/list_song.php [L]
RewriteRule ^goldman_liste_chansons.html?(.*)$ /disco/list_song.php?$1 [L]
RewriteRule ^goldman_liste_chansons_([^.]+).html$ /disco/list_song.php?ordre=$1 [L]
RewriteRule ^goldman_liste_chansons_([^.]+).html?(.*)$ /disco/list_song.php?ordre=$1&$2 [L]

RewriteRule ^goldman_participations.html$ /disco/participations.php [L]
RewriteRule ^goldman_participations.html?(.*)$ /disco/participations.php?$1 [L]

RewriteRule ^goldman_chanson_([0-9]+)_([0-9]*)_([^.]+).html$ /disco/view_song.php?song_id=$1&album_id=$2 [L]
RewriteRule ^goldman_chanson_([0-9]+)_([0-9]*)_([^.]+).html?(.*)$ /disco/view_song.php?song_id=$1&album_id=$2&$4 [L]
RewriteRule ^goldman_chanson_([0-9]+)_([^.]+).html$ /disco/view_song.php?song_id=$1 [L]
RewriteRule ^goldman_chanson_([0-9]+)_([^.]+).html?(.*)$ /disco/view_song.php?song_id=$1&$3 [L]

RewriteRule ^goldman_references_([0-9]+)_([0-9]*)_([^.]+).html$ /disco/ref.php?song_id=$1&album_id=$2 [L]
RewriteRule ^goldman_references_([0-9]+)_([0-9]*)_([^.]+).html?(.*)$ /disco/ref.php?song_id=$1&album_id=$2&$4 [L]
RewriteRule ^goldman_references_([0-9]+)_([^.]+).html$ /disco/ref.php?song_id=$1 [L]
RewriteRule ^goldman_references_([0-9]+)_([^.]+).html?(.*)$ /disco/ref.php?song_id=$1&$3 [L]

RewriteRule ^goldman_extrait_audio_([0-9]+)_([0-9]*)_([^.]+).html$ /disco/extrait.php?song_id=$1&album_id=$2 [L]
RewriteRule ^goldman_extrait_audio_([0-9]+)_([0-9]*)_([^.]+).html?(.*)$ /disco/extrait.php?song_id=$1&album_id=$2&$4 [L]
RewriteRule ^goldman_extrait_audio_([0-9]+)_([^.]+).html$ /disco/extrait.php?song_id=$1 [L]
RewriteRule ^goldman_extrait_audio_([0-9]+)_([^.]+).html?(.*)$ /disco/extrait.php?song_id=$1&$3 [L]

RewriteRule ^goldman_reprises_([0-9]+)_([0-9]*)_([^.]+).html$ /disco/reprises.php?song_id=$1&album_id=$2 [L]
RewriteRule ^goldman_reprises_([0-9]+)_([0-9]*)_([^.]+).html?(.*)$ /disco/reprises.php?song_id=$1&album_id=$2&$4 [L]
RewriteRule ^goldman_reprises_([0-9]+)_([^.]+).html$ /disco/reprises.php?song_id=$1 [L]
RewriteRule ^goldman_reprises_([0-9]+)_([^.]+).html?(.*)$ /disco/reprises.php?song_id=$1&$3 [L]

RewriteRule ^goldman_midi_([0-9]+)_([0-9]*)_([^.]+).html$ /disco/midi.php?song_id=$1&album_id=$2 [L]
RewriteRule ^goldman_midi_([0-9]+)_([0-9]*)_([^.]+).html?(.*)$ /disco/midi.php?song_id=$1&album_id=$2&$4 [L]
RewriteRule ^goldman_midi_([0-9]+)_([^.]+).html$ /disco/midi.php?song_id=$1 [L]
RewriteRule ^goldman_midi_([0-9]+)_([^.]+).html?(.*)$ /disco/midi.php?song_id=$1&$3 [L]

RewriteRule ^goldman_avis_album_([0-9]+)_([^.]+).html$ /disco/avis.php?mode=view_album&album_id=$1 [L]
RewriteRule ^goldman_avis_album_([0-9]+)_([^.]+).html?(.*)$ /disco/avis.php?mode=view_album&album_id=$1&$2 [L]
RewriteRule ^goldman_avis_chanson_([0-9]+)_([0-9]*)_([^.]+).html$ /disco/avis.php?mode=view_song&song_id=$1&album_id=$2 [L]
RewriteRule ^goldman_avis_chanson_([0-9]+)_([0-9]*)_([^.]+).html?(.*)$ /disco/avis.php?mode=view_song&song_id=$1&album_id=$2&$3 [L]

# Prise en charge des -
RewriteEngine on
RewriteRule ^goldman-albums-([^.]+).html$ /disco/albums.php?mode=$1 [L]
RewriteRule ^goldman-albums-([^.]+).html?(.*)$ /disco/albums.php?mode=$1&$2 [L]
RewriteRule ^(.+)-albums-([^_]+)-([0-9]+).html$ /disco/albums.php?mode=$2&artist_id=$3 [L]
RewriteRule ^(.+)-albums-([^_]+)-([0-9]+).html?(.*)$ /disco/albums.php?mode=$2&artist_id=$3&$4 [L]

RewriteRule ^goldman-album-([0-9]+)-([^.]+).html$ /disco/view_album.php?album_id=$1 [L]
RewriteRule ^goldman-album-([0-9]+)-([^.]+).html?(.*)$ /disco/album.php?album_id=$1&$2 [L]

RewriteRule ^goldman-paroles-([0-9]+)-([0-9]*)-(.*).html$ /disco/lyrics.php?song_id=$1&album_id=$2 [L]
RewriteRule ^goldman-paroles-([0-9]+)-([0-9]*)-(.*).html?(.*)$ /disco/lyrics.php?song_id=$1&album_id=$2&$4 [L]

RewriteRule ^goldman-jaquettes-([0-9]+)-(.*).html$ /disco/jaquettes.php?album_id=$1 [L]
RewriteRule ^goldman-jaquettes-([0-9]+)-(.*).html?(.*)$ /disco/jaquettes.php?album_id=$1&$3 [L]

RewriteRule ^goldman-partitions-([0-9]+)-([0-9]*)-(.*).html$ /disco/partition.php?song_id=$1&album_id=$2 [L]
RewriteRule ^goldman-partitions-([0-9]+)-([0-9]*)-(.*).html?(.*)$ /disco/partition.php?song_id=$1&album_id=$2&$4 [L]

RewriteRule ^goldman-singles-(.+).html$ /disco/singles.php?annee=$1 [L]
RewriteRule ^goldman-singles-(.+).html?(.*)$ /disco/singles.php?annee=$1&$2 [L]
RewriteRule ^goldman-singles.html$ /disco/singles.php [L]
RewriteRule ^goldman-singles.html?(.*)$ /disco/singles.php?$1 [L]

RewriteRule ^goldman-liste-chansons.html$ /disco/list_song.php [L]
RewriteRule ^goldman-liste-chansons.html?(.*)$ /disco/list_song.php?$1 [L]
RewriteRule ^goldman-liste-chansons-([^.]+).html$ /disco/list_song.php?ordre=$1 [L]
RewriteRule ^goldman-liste-chansons-([^.]+).html?(.*)$ /disco/list_song.php?ordre=$1&$2 [L]

RewriteRule ^goldman-participations.html$ /disco/participations.php [L]
RewriteRule ^goldman-participations.html?(.*)$ /disco/participations.php?$1 [L]

RewriteRule ^goldman-chanson-([0-9]+)-([0-9]*)-([^.]+).html$ /disco/view_song.php?song_id=$1&album_id=$2 [L]
RewriteRule ^goldman-chanson-([0-9]+)-([0-9]*)-([^.]+).html?(.*)$ /disco/view_song.php?song_id=$1&album_id=$2&$4 [L]
RewriteRule ^goldman-chanson-([0-9]+)-([^.]+).html$ /disco/view_song.php?song_id=$1 [L]
RewriteRule ^goldman-chanson-([0-9]+)-([^.]+).html?(.*)$ /disco/view_song.php?song_id=$1&$3 [L]

RewriteRule ^goldman-references-([0-9]+)-([0-9]*)_([^.]+).html$ /disco/ref.php?song_id=$1&album_id=$2 [L]
RewriteRule ^goldman-references-([0-9]+)-([0-9]*)_([^.]+).html?(.*)$ /disco/ref.php?song_id=$1&album_id=$2&$4 [L]
RewriteRule ^goldman-references-([0-9]+)-([^.]+).html$ /disco/ref.php?song_id=$1 [L]
RewriteRule ^goldman-references-([0-9]+)-([^.]+).html?(.*)$ /disco/ref.php?song_id=$1&$3 [L]

RewriteRule ^goldman-extrait-audio-([0-9]+)-([0-9]*)-([^.]+).html$ /disco/extrait.php?song_id=$1&album_id=$2 [L]
RewriteRule ^goldman-extrait-audio-([0-9]+)-([0-9]*)-([^.]+).html?(.*)$ /disco/extrait.php?song_id=$1&album_id=$2&$4 [L]
RewriteRule ^goldman-extrait_audio-([0-9]+)-([^.]+).html$ /disco/extrait.php?song_id=$1 [L]
RewriteRule ^goldman-extrait_audio-([0-9]+)-([^.]+).html?(.*)$ /disco/extrait.php?song_id=$1&$3 [L]

RewriteRule ^goldman-reprises-([0-9]+)-([0-9]*)-([^.]+).html$ /disco/reprises.php?song_id=$1&album_id=$2 [L]
RewriteRule ^goldman-reprises-([0-9]+)-([0-9]*)-([^.]+).html?(.*)$ /disco/reprises.php?song_id=$1&album_id=$2&$4 [L]
RewriteRule ^goldman-reprises-([0-9]+)-([^.]+).html$ /disco/reprises.php?song_id=$1 [L]
RewriteRule ^goldman-reprises-([0-9]+)-([^.]+).html?(.*)$ /disco/reprises.php?song_id=$1&$3 [L]

RewriteRule ^goldman-midi-([0-9]+)-([0-9]*)-([^.]+).html$ /disco/midi.php?song_id=$1&album_id=$2 [L]
RewriteRule ^goldman-midi-([0-9]+)-([0-9]*)-([^.]+).html?(.*)$ /disco/midi.php?song_id=$1&album_id=$2&$4 [L]
RewriteRule ^goldman-midi-([0-9]+)-([^.]+).html$ /disco/midi.php?song_id=$1 [L]
RewriteRule ^goldman-midi-([0-9]+)-([^.]+).html?(.*)$ /disco/midi.php?song_id=$1&$3 [L]

RewriteRule ^goldman-avis-album-([0-9]+)-([^.]+).html$ /disco/avis.php?mode=view_album&album_id=$1 [L]
RewriteRule ^goldman-avis-album-([0-9]+)-([^.]+).html?(.*)$ /disco/avis.php?mode=view_album&album_id=$1&$2 [L]
RewriteRule ^goldman-avis-chanson-([0-9]+)-([0-9]*)-([^.]+).html$ /disco/avis.php?mode=view_song&song_id=$1&album_id=$2 [L]
RewriteRule ^goldman-avis-chanson-([0-9]+)-([0-9]*)-([^.]+).html?(.*)$ /disco/avis.php?mode=view_song&song_id=$1&album_id=$2&$3 [L]

RewriteRule ^sitemap.xml$ /disco/sitemap.php [L]
RewriteRule ^sitemap1.xml$ /disco/sitemap.php [L]

On Github License

Files

Download PDF of Htaccess file

Comments

Apache