Welcome! Log In Create A New Profile

Advanced

Need to have this apache rewrite converted

Posted by roguehosting 
Need to have this apache rewrite converted
July 15, 2019 06:01AM
I tried already with all available automated converters, but it seems does not work, i either get 404 error or html file get downloaded.
Here is code from htaccess:
RewriteEngine on

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

<IfModule mod_headers.c>
<FilesMatch ".(eot|otf|svg|ttf|woff|woff2)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>

RewriteRule ^get/([0-9]+)/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/([0-9]+)/([0-9]+)/([a-zA-Z0-9\.]+)$ stp/flv.php?storage_id=$1&hash=$2&time=$3&subdir=$4&id=$5&file=$6&%{QUERY_STRING} [L]
RewriteRule ^click/(video|gallery)/([a-zA-Z0-9]+)/([a-zA-Z0-9-]+)$ stp/stp.php?type=$1&id=$2&title=$3%{QUERY_STRING} [L]
RewriteRule ^click/([0-9-]+)/(video|gallery)/([a-zA-Z0-9-]+)-([a-zA-Z0-9]+)\.html$ stp/stp.php?&page=$1&type=$2&id=$4&title=$3&popular=1%{QUERY_STRING} [L]
RewriteRule ^video/([a-zA-Z0-9-]+)-([a-zA-Z0-9]+)\.html$ index.php?view=video&v=$2&%{QUERY_STRING} [L]
RewriteRule ^gallery/([a-zA-Z0-9-]+)-([a-zA-Z0-9]+)\.html$ index.php?view=gallery&g=$2&%{QUERY_STRING} [L]
RewriteRule ^ranked/$ index.php?view=ranked_media&%{QUERY_STRING} [L]
RewriteRule ^embed/([a-zA-Z0-9]+) stp/embed.php?v=$1&%{QUERY_STRING} [L]
RewriteRule ^playlist/([a-zA-Z0-9]+)/([0-9-]+)/([a-zA-Z0-9]+)/([a-zA-Z0-9-]+)\.html$ index.php?view=video&v=$3&playlist=$1&p=$2&%{QUERY_STRING} [L]
RewriteRule ^playlist/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/([a-zA-Z0-9-]+)\.html$ index.php?view=video&v=$2&playlist=$1&%{QUERY_STRING} [L]
RewriteRule ^playlist/([a-zA-Z0-9-]+)/([0-9]+)/$ index.php?view=playlist&playlist=$1&p=$2 [L]
RewriteRule ^playlist/([a-zA-Z0-9-]+)/$ index.php?view=playlist&playlist=$1 [L]

RewriteRule ^(videos|galleries)/$ index.php?view=categories&type=$1&%{QUERY_STRING} [L]
RewriteRule ^(videos|galleries)/([a-zA-Z0-9_-]+)-(recent|view|rate|length|vip|popular|popular_all)\.html$ index.php?view=categories&type=$1&main_cat=$2&sort=$3&%{QUERY_STRING} [L]
RewriteRule ^(videos|galleries)/([a-zA-Z0-9_-]+)-(recent|view|rate|length|vip|popular|popular_all)-([0-9]+)\.html$ index.php?view=categories&type=$1&main_cat=$2&sort=$3&p=$4&%{QUERY_STRING} [L]
RewriteRule ^(videos|galleries)/([a-zA-Z0-9-]+)/$ index.php?view=categories&type=$1&main_cat=$2&%{QUERY_STRING} [L]
RewriteRule ^(videos|galleries)/([a-zA-Z0-9-]+)/([a-zA-Z0-9_-]+)-[^-]*(recent|view|rate|length|vip|popular|popular_all)\.html$ index.php?view=categories&type=$1&main_cat=$2&sub_cat=$3&sort=$4&%{QUERY_STRING} [L]
RewriteRule ^(videos|galleries)/([a-zA-Z0-9-]+)/([a-zA-Z0-9_-]+)-[^-]*(recent|view|rate|length|vip|popular|popular_all)-([0-9]+)\.html$ index.php?view=categories&type=$1&main_cat=$2&sub_cat=$3&sort=$4&p=$5&%{QUERY_STRING} [L]

RewriteRule ^group/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)\.html$ index.php?view=group&group=$1&%{QUERY_STRING} [L]
RewriteRule ^group/([a-zA-Z0-9-]+)/forum/$ index.php?view=group_forum&group=$1 [L]
RewriteRule ^group/([a-zA-Z0-9-]+)/videos/$ index.php?view=group_videos&group=$1 [L]
RewriteRule ^group/([a-zA-Z0-9-]+)/galleries/$ index.php?view=group_galleries&group=$1 [L]
RewriteRule ^group/([a-zA-Z0-9-]+)/members/$ index.php?view=group_members&group=$1 [L]

RewriteRule ^groups/$ index.php?view=groups&%{QUERY_STRING} [L]
RewriteRule ^groups/([a-zA-Z0-9-]+)/(([0-9]+)/)?(.*)$ index.php?view=groups&category=$1&p=$3&%{QUERY_STRING} [L]
RewriteRule ^members/(([0-9]+)/)?(.*)$ index.php?view=memberlist&avatar_required=0&content_required=0&p=$2&%{QUERY_STRING} [L]
RewriteRule ^widgets/$ index.php?view=widgets&%{QUERY_STRING} [L]
RewriteRule ^blogs/$ index.php?view=blogs&%{QUERY_STRING} [L]
RewriteRule ^blogs/(([0-9]+)/)?(.*)$ index.php?view=blogs&p=$2&%{QUERY_STRING} [L]

RewriteRule ^profile/([a-zA-Z0-9]+)/$ index.php?view=profile&user=$1 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/blog/([a-zA-Z0-9-]+)-([a-zA-Z0-9]+)\.html$ index.php?view=profile&page=profile_blog_post&post=$3&user=$1 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/blog/$ index.php?view=profile&page=profile_blogs&user=$1 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/blog/([0-9]+)/$ index.php?view=profile&page=profile_blogs&user=$1&p=$2 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/videos/$ index.php?view=profile&page=profile_videos&user=$1 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/videos/([0-9]+)/$ index.php?view=profile&page=profile_videos&user=$1&p=$2 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/galleries/$ index.php?view=profile&page=profile_galleries&user=$1 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/galleries/([0-9]+)/$ index.php?view=profile&page=profile_galleries&user=$1&p=$2 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/favorite-videos/$ index.php?view=profile&page=profile_favorite_videos&user=$1 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/favorite-videos/([0-9]+)/$ index.php?view=profile&page=profile_favorite_videos&user=$1&p=$2 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/favorite-galleries/$ index.php?view=profile&page=profile_favorite_galleries&user=$1 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/favorite-galleries/([0-9]+)/$ index.php?view=profile&page=profile_favorite_galleries&user=$1&p=$2 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/playlists/$ index.php?view=profile&page=profile_playlist&user=$1 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/playlists/([0-9]+)/$ index.php?view=profile&page=profile_playlist&user=$1&p=$2 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/friends/$ index.php?view=profile&page=profile_friends&user=$1 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/friends/([0-9]+)/$ index.php?view=profile&page=profile_friends&user=$1&p=$2 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/groups/$ index.php?view=profile&page=profile_groups&user=$1 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/groups/([0-9]+)/$ index.php?view=profile&page=profile_groups&user=$1&p=$2 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/comments/$ index.php?view=profile&page=profile_comments&user=$1 [L]
RewriteRule ^profile/([a-zA-Z0-9]+)/comments/([0-9]+)/$ index.php?view=profile&page=profile_comments&user=$1&p=$2 [L]

RewriteRule ^categories/((videos|galleries)/)?(.*)$ index.php?view=categories_pick&type=$2&%{QUERY_STRING} [L]
RewriteRule ^categories_list/$ index.php?view=categories_list&%{QUERY_STRING} [L]

RewriteRule ^search/$ index.php?view=search&%{QUERY_STRING} [L]
RewriteRule ^search/([a-zA-Z0-9-]+)/(.*[^/])$ index.php?view=search&search_type=$1&search=$2&%{QUERY_STRING} [L]
RewriteRule ^search/([a-zA-Z0-9-]+)/(.*[^/])/([0-9-]+)/$ index.php?view=search&search_type=$1&search=$2&p=$3&%{QUERY_STRING} [L]

RewriteRule ^feed/([a-zA-Z0-9-]+)/(videos|galleries)/(recent|view|rate|length|vip|featured)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/$ stp/feed.php?view=feed&format=$1&type=$2&sort=$3&main_cat=$4&sub_cat=$5&user=$6&time=$7 [L]
RewriteRule ^feed/([a-zA-Z0-9-]+)/(all|videos|galleries)/deleted/([a-zA-Z0-9_]+)/$ stp/feed.php?view=feed&format=$1&type=$2&type2=deleted&time=$3 [L]

RewriteRule ^callback/billthephone/([0-9]+)/$ stp/payment/callback.php?stp_api=billthephone&stp_method_id=$1&%{QUERY_STRING} [L]
RewriteRule ^callback/([a-zA-Z0-9_-]+)/([a-zA-Z0-9]+)/$ stp/payment/callback.php?stp_api=$1&stp_callback_password=$2&%{QUERY_STRING} [L]
RewriteRule ^callback/([a-zA-Z0-9_-]+)/$ stp/payment/callback.php?stp_api=$1&%{QUERY_STRING} [L]

RewriteRule ^video-comments/([a-zA-Z0-9-]+)/$ index.php?view=comments_video&v=$1 [L]
RewriteRule ^gallery-comments/([a-zA-Z0-9-]+)/$ index.php?view=comments_gallery&g=$1 [L]

RewriteRule ^signup/$ index.php?view=signup [L]
RewriteRule ^login/$ index.php?view=login&%{QUERY_STRING} [L]
RewriteRule ^submit/$ index.php?view=submit [L]
RewriteRule ^terms/$ index.php?view=terms_of_service [L]
RewriteRule ^privacy/$ index.php?view=privacy_policy [L]
RewriteRule ^dmca/$ index.php?view=dmca_policy [L]
RewriteRule ^report-abuse/$ index.php?view=report_abuse [L]
RewriteRule ^contact-us/$ index.php?view=contact_us [L]
RewriteRule ^advertisement/$ index.php?view=advertisement [L]
RewriteRule ^forgot-password/$ index.php?view=forgot_password [L]
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 279
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready