GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   STP URL rewrite for nginx? (https://gfy.com/showthread.php?t=1315745)

Klen 07-16-2019 02:27 AM

STP URL rewrite for nginx?
 
Tried to using automated htaccess to nginx rewrite converter but it still does not working, getting either
html file downloaded or 404 error. Any ideas? Here is htaccess code:
Code:

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]


GrandeRevenueMark 07-16-2019 02:48 AM

Online tools to convert .htacces to NGINX don't work. Already tried with KVS with no luck.

Ask your host to convert it for you.

Klen 07-16-2019 02:50 AM

Quote:

Originally Posted by GrandeRevenueMark (Post 22502210)
Online tools to convert .htacces to NGINX don't work. Already tried with KVS with no luck.

Ask your host to convert it for you.

There was one converter which always worked before but it is offline now for some reason.

ghjghj 07-16-2019 07:14 AM

Quote:

Originally Posted by GrandeRevenueMark (Post 22502210)
Online tools to convert .htacces to NGINX don't work.

Can confirm. Learning the superior nginx format is worth it.

Klen 07-17-2019 12:59 AM

Also contacted support guy, and seems he does not know solution, he claim how auto-converted regex should be fine but obviously it's not. I think i had similar problem with other tube script but cant remember where i asked for help and how i solved it then lol

GrandeRevenueMark 07-17-2019 02:31 AM

Quote:

Originally Posted by KlenTelaris (Post 22502847)
Also contacted support guy, and seems he does not know solution, he claim how auto-converted regex should be fine but obviously it's not. I think i had similar problem with other tube script but cant remember where i asked for help and how i solved it then lol

Tell him it's not true. The only reason is probably that they don't know how to do that. Is your hoster US based? In this case they don't know how to work with NGINX. Really simple.

Klen 07-17-2019 02:57 AM

Quote:

Originally Posted by GrandeRevenueMark (Post 22502870)
Tell him it's not true. The only reason is probably that they don't know how to do that. Is your hoster US based? In this case they don't know how to work with NGINX. Really simple.

Not the host, but script support. You would think how they would have nginx reg-ex considering it says how nginx is supported, yet there is nothing about in docs. And i told him how reg-ex is not correct, and now he is ignoring me :1orglaugh

el_mago 07-17-2019 03:36 AM

Industry related threads are not allowed on this forum, delete this.

GrandeRevenueMark 07-17-2019 03:51 AM

Quote:

Originally Posted by KlenTelaris (Post 22502880)
Not the host, but script support. You would think how they would have nginx reg-ex considering it says how nginx is supported, yet there is nothing about in docs. And i told him how reg-ex is not correct, and now he is ignoring me :1orglaugh

Ask the host. Bepe and Goodwill are good guys but these days probably they sell 2 licenses monthly ...so they don't care much.

Klen 07-19-2019 04:51 AM

Quote:

Originally Posted by GrandeRevenueMark (Post 22502895)
Ask the host. Bepe and Goodwill are good guys but these days probably they sell 2 licenses monthly ...so they don't care much.

Solved by using auto converter tool which i used before. Crazy how none of other tools actually bothered to check does their tool working properly or not. Now need to see is STP good or bad script.

GrandeRevenueMark 07-19-2019 06:38 AM

Quote:

Originally Posted by KlenTelaris (Post 22504134)
Solved by using auto converter tool which i used before. Crazy how none of other tools actually bothered to check does their tool working properly or not. Now need to see is STP good or bad script.

Well ... it's almost an abandoned project :helpme


All times are GMT -7. The time now is 05:11 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123