I have a situation here
I have my tag pages as http://www.mydomain.com/tag/amitabh-bachchan/
written cleanly by
- Code: Select all
RewriteRule ^tag/([-a-z0-9_]+)/?$ /tag.php?tag=$1 [NC,L]
and
- Code: Select all
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{QUERY_STRING} ^(.*&)?tag=([^&]+)(&.*)?$ [NC]
RewriteRule ^tag\.php$ /tag/%2/? [R=301]
RewriteRule ^([-a-z0-9_]+)$ /tag.php?tag=$1 [NC]
I actually now want to introduce paging in these tag pages like
http://www.mydomain.com/tag/amitabh-bachchan/page1/
http://www.mydomain.com/tag/amitabh-bachchan/page2/
I have done this in my category pages http://www.mydomain.com/category1/page1/ by the following code
- Code: Select all
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{QUERY_STRING} ^(.*&)?category=([^&]+)(&.*)?$ [NC]
RewriteCond %2/page&%{QUERY_STRING} ^([^&]+/page)&(.*&)?pageNum_rs=([0-9]+)(&.*)?$ [NC,OR]
RewriteCond %2 ^(.+)$ [NC]
RewriteRule ^category\.php$ http://www.okidda.com/%1%3? [R=301,L]
Can anyone help me with my tag page here, any help would be appreciated as we just need to tweak the category code for the tags!
cheers!