Page 1 of 1

possible issues with rewrites

Posted: Thu Jun 19, 2014 2:55 am
by pyrorain
I have a site that it was designed for me that has quite afew issues, for example

http://wildthingtube.com:81/euro-babes- ... ?5x1x45789

I have the following apache rewrites:

Code: Select all

RewriteEngine On

RewriteRule ^popular/$ /scj/tube/index.php?group_name=All&order=ctr&page=1 [L]

RewriteRule ^recent/$ /scj/tube/index.php?group_name=All&order=date&page=1 [L]

RewriteRule ^longest/$ /scj/tube/index.php?group_name=All&order=duration&page=1 [L]

RewriteRule ^top-rated/$ /scj/tube/index.php?group_name=All&order=rating&page=1 [L]

RewriteRule ^popular/page-([^/]+).html$ /scj/tube/index.php?group_name=All&order=ctr&page=$1 [L]

RewriteRule ^recent/page-([^/]+).html$ /scj/tube/index.php?group_name=All&order=date&page=$1 [L]

RewriteRule ^longest/page-([^/]+).html$ /scj/tube/index.php?group_name=All&order=duration&page=$1 [L]

RewriteRule ^top-rated/page-([^/]+).html$ /scj/tube/index.php?group_name=All&order=rating&page=$1 [L]





#toplist

RewriteRule ^friend/(.*)$ /scj/cgi/out.php?member=$1 [L]



#slug galleries

RewriteCond %{QUERY_STRING} ^(.+)$ 

RewriteRule ^([^/]+).html$ /scj/cgi/out.php?link=images/%{QUERY_STRING}&url=content&slug=$1 [L]

RewriteRule ^([^/]+).html$ /scj/tube/?slug=$1 [L]



#search

RewriteRule ^search/(.*)/$ /scj/tube/index.php?search_type=query&search=$1&order=ctr&page=1

RewriteRule ^search/(.*)/page-([^/]+).html$ /scj/tube/index.php?search_type=query&search=$1&order=ctr&page=$2



#tags

RewriteRule ^tag/([^/]+)/$ /scj/tube/index.php?search_type=tag&search=$1&order=ctr&page=1&force_template=tag_list [L]

RewriteRule ^tag/([^/]+)/page-([^/]+).html$ /scj/tube/index.php?search_type=tag&search=$1&order=ctr&page=$2&force_template=tag_list [L]

RewriteRule ^tag/(.*)/$ /scj/tube/index.php?tag=$1&order=ctr&page=1&force_template=tag_list





RewriteRule ^report/(.*)/$ /scj/tube/?content_id=$1 [L]



RewriteRule ^go/(.*)/$ /scj/tube/?action=sponsor&sponsor_slug=$1& [L]

RewriteRule ^goto/([^/]+)/$ /scj/cgi/out.php?link=images/%{QUERY_STRING}&url=content&p=100&skip_to_cookie=true&skip_sell=true&go=banner&slug=$1 [L]



#categories

RewriteCond %{QUERY_STRING} ^(.+)$ 

RewriteRule ^([^/]+)_porn$ /scj/cgi/out.php?link=images/%{QUERY_STRING}&url=content&p=100&skip_to_cookie=true&skip_sell=true&group_name=$1&order=ctr [L]
RewriteRule ^([^/]+)_porn/$ /scj/cgi/out.php?link=images/%{QUERY_STRING}&url=content&p=100&skip_to_cookie=true&skip_sell=true&group_name=$1&order=ctr [L]

RewriteRule ^([^/]+)_porn/page-([^/]+).html$ /scj/tube/index.php?group_name=$1&order=ctr&page=$2 [L]

RewriteRule ^([^/]+)_porn/$ /scj/tube/index.php?group_name=$1 [L]
RewriteRule ^([^/]+)_porn$ /scj/tube/index.php?group_name=$1 [L]
ErrorDocument 404 /scj/tube/index.php?group_id=ALL&force_template=404
Also I get the following errors:

Code: Select all

[Mon Jun 16 23:43:59 2014] [error] [client 192.168.1.15] PHP Warning:  my_location(): Filename cannot be empty in /var/vhosts/example.com/public_html/scj/cgi/out.php on line 0, referer: http://example.com:81/
[Mon Jun 16 23:43:59 2014] [error] [client 192.168.1.15] PHP Warning:  my_location(): Filename cannot be empty in /var/vhosts/example.com/public_html/scj/cgi/out.php on line 0, referer: http://example.com:81/
[Mon Jun 16 23:43:59 2014] [error] [client 192.168.1.15] PHP Warning:  my_location(): Failed opening '' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/vhosts/example.com/public_html/scj/cgi/out.php on line 0, referer: http://example.com:81/
[Mon Jun 16 23:43:59 2014] [error] [client 192.168.1.15] PHP Notice:  Undefined index: SCJ_GALLERY_SOURCE_URL in /var/vhosts/example.com/public_html/scj/cgi/out.php on line 0, referer: http://example.com:81/
[Mon Jun 16 23:43:59 2014] [error] [client 192.168.1.15] PHP Notice:  Undefined index: SCJ_GALLERY_SOURCE_URL in /var/vhosts/example.com/public_html/scj/cgi/out.php on line 0, referer: http://example.com:81/
192.168.1.15 - - [16/Jun/2014:23:43:59 -0400] "GET /3some_tube_porn/ HTTP/1.1" 200 370 "http://example.com:81/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0"
I really can't find waht the problem is

Re: possible issues with rewrites

Posted: Thu Jun 19, 2014 3:09 am
by admin
First of all, did you try to run update ?

Re: possible issues with rewrites

Posted: Thu Jun 19, 2014 4:18 am
by pyrorain
Yes I did

Re: possible issues with rewrites

Posted: Thu Jun 19, 2014 11:22 am
by admin
Ok, send me ftp plz, i'll check it

Re: possible issues with rewrites

Posted: Fri Jun 20, 2014 2:55 am
by pyrorain
sent