Advertisement
niammuddin

config nginx for mp3 sites

Nov 10th, 2017
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. # add more config here
  2.  
  3.  
  4. rewrite convert/i$ /convert/17-08-2017.js;
  5. rewrite ^/convert/(.*)/(.*)/(.*)\/$ /convert/do.php?sub=$1&id=$2&id2=$3;
  6.  
  7.  
  8. rewrite sitemap.xml$ /sitemap.php;
  9. rewrite ^/genre/(.*)/(.*)\/$ /all_genre.php?genre_id=$1&genre_name=$2;
  10. rewrite ^/page/(.*)\/$ /page.php?page=$1;
  11.  
  12. if (!-e $request_filename){
  13. rewrite ^/mp3/(.*)\.html$ /search.php?q=$1;
  14. }
  15.  
  16. if (!-e $request_filename){
  17. rewrite ^/album/(.*)/(.*)\.html$ /album.php?album=$1&album_slug=$2;
  18. }
  19.  
  20. if (!-e $request_filename){
  21. rewrite ^/artist/(.*)/(.*)\.html$ /artist.php?artist=$1&artist_slug=$2;
  22. }
  23.  
  24. if (!-e $request_filename){
  25. rewrite ^/download/(.*)/(.*)\.html$ /download.php?dl=$1&dl_slug=$2;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement