Page 1 of 1

Pagination links

Posted: Thu Jun 13, 2013 7:05 pm
by ntesic
Hello,
I have link like this: http://DOMAIN/category/0/All/ctr/2 but it redirect to homepage.
or also: http://DOMAIN/category/225/Amateur/ctr/2 also redirect to main page

Here is what is in .htaccess:
RewriteCond %{QUERY_STRING} ^(.+)$
RewriteRule ^category/([^/]+)/$ /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 ^category/([^/]+)/$ /scj/tube/index.php?group_name=$1 [L]
RewriteRule ^category/([^/]+)/([^/]+)/([^/]+)/$ /scj/cgi/out.php?link=images/%{QUERY_STRING}&url=content&p=100&skip_to_cookie=true&skip_sell=true&group_name=$1&order=$2&page=$3 [L]
RewriteCond %{QUERY_STRING} ^(.+)$
RewriteRule ^category/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ /scj/cgi/out.php?link=images/%{QUERY_STRING}&url=content&p=100&skip_to_cookie=true&skip_sell=true&group_id=$1&order=$3&page=$4 [L]
RewriteRule ^category/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?group_id=$1&order=$3&page=$4 [L]

What is proper way to link to page 2 and so on?

Re: Pagination links

Posted: Fri Jun 14, 2013 7:02 am
by admin

Re: Pagination links

Posted: Fri Jun 14, 2013 12:26 pm
by ntesic
Got it. I added "?" in .htaccess file for category folder

Re: Pagination links

Posted: Fri Jun 14, 2013 12:32 pm
by admin
The most important thing is that you understand what rewrites do )