Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Apache only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
Apache
htaccess
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
canabatz
New Member
Join Date:
Oct 2008
Posts:
155
#1
htaccess
Jan 12 '09, 07:03 PM
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
Join Date:
Nov 2006
Posts:
5062
#2
Jan 16 '09, 01:26 PM
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
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment