Jump to content

These Forums Are Now Read-Only

For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Rewrite tubepress url

  • Please log in to reply
1 reply to this topic

#1 < no first name > Patrice

< no first name > Patrice


  • Members
  • Pip
  • 4 posts

Posted 11 February 2012 - 04:42 AM


Actually my url are looking like that


. I look for a way to rewite it to make something like "videos/page/1"

Thanks for your help

#2 eric


    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 14 February 2012 - 12:34 AM


Assuming your running under Apache with mod_rewrite, here's what I would do:

RewriteEngine On
RewriteCond %{QUERY_STRING} ^/videos/page/(0-9+)$
RewriteRule ^/videos.php?tubepress_page=%1$
Of course, your details will differ. But the above example will maps all requests to e.g. /videos/page/3 to /videos.php?tubepress_page=3. Is that enough to get you pointed in the right direction? Let me know if you need further assistance. Thanks!