How to give Page Names using keywords?

Discussion in 'PHP' started by abhishekp.vibrantcreation, Jul 30, 2011.

  1. #1
    Hello everyone, I need to give a page name using keywords.
    Given Page Name : viewCatOffer.php?catId=12
    I Required : restaurants_offers.php
    Please suggest me the correct way how to solve this problem in PHP.
    Thanks in advance!!!!!
     
  2. freelanceinphp

    freelanceinphp Member

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    48
    #2
    you can do this control using htaccess rewrite rule.
     
    freelanceinphp, Aug 1, 2011 IP
  3. andreashdk

    andreashdk Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    as told, use htaccess.

    this is a good resource:
    askapache.com/ htaccess/mod_rewrite-tips-and-tricks.html
     
    andreashdk, Aug 2, 2011 IP
  4. JustAlex10

    JustAlex10 Member

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    41
    #4
    Create a .htaccess file and wrote this:
    
    Options +FollowSymlinks
    
    RewriteEngine On
    RewriteBase /
    
    RewriteRule ^restaurants_offers\.php$ viewCatOffer.php?catId=12
    
    Code (markup):
     
    JustAlex10, Aug 3, 2011 IP