Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-16-2019, 02:27 AM   #1
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
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]
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2019, 02:48 AM   #2
GrandeRevenueMark
Confirmed User
 
Industry Role:
Join Date: Mar 2015
Posts: 142
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.
GrandeRevenueMark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2019, 02:50 AM   #3
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by GrandeRevenueMark View Post
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.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-16-2019, 07:14 AM   #4
ghjghj
So Fucking Banned
 
Join Date: Jun 2005
Posts: 3,770
Quote:
Originally Posted by GrandeRevenueMark View Post
Online tools to convert .htacces to NGINX don't work.
Can confirm. Learning the superior nginx format is worth it.
ghjghj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2019, 12:59 AM   #5
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
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
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2019, 02:31 AM   #6
GrandeRevenueMark
Confirmed User
 
Industry Role:
Join Date: Mar 2015
Posts: 142
Quote:
Originally Posted by KlenTelaris View Post
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.
GrandeRevenueMark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2019, 02:57 AM   #7
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by GrandeRevenueMark View Post
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
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2019, 03:36 AM   #8
el_mago
So Fucking Banned
 
Industry Role:
Join Date: Sep 2017
Posts: 353
Industry related threads are not allowed on this forum, delete this.
el_mago is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-17-2019, 03:51 AM   #9
GrandeRevenueMark
Confirmed User
 
Industry Role:
Join Date: Mar 2015
Posts: 142
Quote:
Originally Posted by KlenTelaris View Post
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
Ask the host. Bepe and Goodwill are good guys but these days probably they sell 2 licenses monthly ...so they don't care much.
GrandeRevenueMark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-19-2019, 04:51 AM   #10
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by GrandeRevenueMark View Post
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.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-19-2019, 06:38 AM   #11
GrandeRevenueMark
Confirmed User
 
Industry Role:
Join Date: Mar 2015
Posts: 142
Quote:
Originally Posted by KlenTelaris View Post
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
GrandeRevenueMark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
rewriterule, [l], htaccess, rewrite, nginx, ^profile/[a-za-z0-9]+/$, index.php?view=submit, ^terms/$, ^privacy/$, ^submit/$, ^signup/$, index.php?view=signup, ^login/$, ^dmca/$, ^advertisement/$, ^forgot-password/$, index.php?view=contact_us, ^contact-us/$, ^report-abuse/$, ^search/$, ^blogs/[0-9]+$, ^categories_list/$, secfilterengine, secfilterscanpost, header



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.