Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod rewrite question

Status
Not open for further replies.

MikeydJR

Technical User
Sep 10, 2003
8
US
I am new to mod_rewrite, but I need to redirect

to


I tried this in htaccess in the /chf directory:
Code:
Options +FollowSymlinks
 RewriteEngine on
RewriteRule ^grantcal\.php\?v\=day\&d\=([0-9-]+)$ [URL unfurl="true"]http://www.mysite.com/chf/index.php?mod=grantcalday&d=$1[/URL] [R=301,L]

Any help is welcome! TIA

Apache: 2.0.52 | MySQL: 4.1.20 | PHP: 4.3.9 | MS Access 2002 | WinXP SP2
 
I'm new to mod_rewrite too, but I think it would be more like...
Code:
RewriteEngine on
RewriteRule ^/chf/grantcal\.php\?v\=day\&d\=([0-9-]+)$ /chf/index.php?mod=cal&d=$1 [R=301,L]
Also turn on logging. That helps while debugging these things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top