hallianonline 0 Newbie Poster

hello I am facing a problem with my htacess i have two php files that are used for URL rewriting first one is video.php and second one is channel.php. on homepage when I click any video its properly works for rewriting the url e.g.

mysite.com/video.php?url=1234

changes to that works properly for me

mysite.com/1234-video-custom-slug

but when I click for any channel it loads the same video.php but with rewriting urls of channel like:

mysite.com/channel/1-channel-slug

instead of rewriting urls from channel.php?id=1

Secondly i want to add pagination in channel which will work like this

mysite.com/channel/channel-slug-name/page/1
mysite.com/channel/channel-slug-name/page/2
mysite.com/channel/channel-slug-name/page/last
.. etc
I don't know what i am doing wrong and how to add pagination in it. here is my htaccess file code if anyone can help me in this

RewriteEngine On
RewriteRule ^channel/([a-zA-Z0-9-/]+)$ channel.php?id=$1
RewriteRule ^channel/([a-zA-Z0-9-/]+)/$ channel.php?id=$1
RewriteRule ^([a-zA-Z0-9-/]+)$ video.php?url=$1
RewriteRule ^([a-zA-Z0-9-/]+)/$ video.php?url=$1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.