Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5930699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:35:24+00:00 2026-05-22T14:35:24+00:00

I need your help to make some url redirection using .htaccess The case is

  • 0

I need your help to make some url redirection using .htaccess
The case is that I have url like http://www.website.com/index.php?chID=1234 which opens particular tv channel on the website.
The problem is that I want to make these urls like http://www.website.com/channel-name/1234 (where 1234 is that chID variable, to get record from the database, of course without it would be more nice).
here is the working link – http://www.livepage.info/world-tv-channels.php?chID=1512

any suggestion will be greatly appreciated! Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T14:35:25+00:00Added an answer on May 22, 2026 at 2:35 pm

    To redirect all channels, you could use:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^([^/]+/\d+)/$ http://www.livepage.info/$1 [L,R=302,QSA]
    RewriteRule ^[^/]+/(\d+)$ index.php?chID=$1 [L,QSA]
    

    Don’t forget that you will need a new HEAD tag in your HTML (otherwise images will be fetched from http://www.livepage.info/euronews-russia/images/...):

    <base href="http://www.livepage.info/">
    

    Of course, you could use .htaccess instead. This is, however, not as good as the base href tag, since the client wouldn’t use the cache when viewing different channels, or if the client gets redirected, will need two requests for each image etc.

    RewriteRule ^([^/]+)/(images|folder2|folder3)(/.+)$ $2$3 [L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've some questions .. and I really need your help. I have an application.
I need your help, For example I have a decimal type variable and I
I need your help to define a special case in XML schema: A sequence
I need your expertise once again. I have a java class that searches a
I'd like to ask your help regarding having a Google Talk Bot that will
I don't have much experience in frameworks or languages, so i need your help.
I'm using Reporting Services 2005 and I'm in need of your expertise! I have
I have a method that I call to make web service requests using GET.
I have some very simple sample code like this: $.ajax({ url: 'demo2.htm', success: function(loadeddata){
I'm using C# in VS2010 and I need some help with a web application.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.