Forum Moderators: phranque
Okay, this works fine,
RewriteEngine on
RewriteRule ^webpage$ /my_webpage.php
RewriteRule ^webpage-name$ /my_webpage.php?var=name First question. Do I need to make it like this ^webpage\.php$ or can I just leave out the php?
Second question. How do I change a address like this with changing variables?
http://my_webpage.php?var1=name&var2=number&var3=type and if I am able to change it, how do I reference it?
RewriteRule ^webpage/cat/([0-9]+)/?$ /my_webpage.php?var1=name&cat=$1 [L] The first time I click the link it looks like this,
webpage/cat/1 The second time it looks like this,
webpage/cat/webpage/cat/1 I'm pretty sure I glanced at a thread that talked about this. I tried adding a [PT] but it just gave me a internal server error. Any ideas?
*edit* Okay, absolute URL's seem to clear the problem up.
Welcome to WebmasterWorld [webmasterworld.com]!
I'd like to help, but I can't answer your question because you have not stated what you wish to accomplish with your rewrite.
Jim