htaccess

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • canabatz
    New Member
    • Oct 2008
    • 155

    htaccess

    there is a way to change the name of a file ,and the file will act the same?

    insead of product.php?id= 123

    to
    sale.php?id=123

    thanx
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Sure, you can do that using mod_rewrite.

    Soemething like this should do it:
    Code:
    RewriteEngine on
    RewriteRule ^sales.php$ product.php?%{QUERY_STRING}
    See the documentation for details on how to customize that.

    Comment

    Working...