Using .htaccess to redirect specific .php file requests

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
BigChase
Forum Newbie
Posts: 8
Joined: Sat Oct 15, 2005 4:48 pm

Using .htaccess to redirect specific .php file requests

Post by BigChase »

Can .htaccess redirects be used to redirect .php files based on the
paramers the request is passing? For instance, can:

Redirect /question.php?number=10 /question_about_cars.php?number=10

be made to only redirect question.php when the passed parameter number
= 10? The Redirect line above redirects ALL requests to /question.php
regardless of what number is = to.

Thanks for the assistance.
Post Reply