icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » mod_rewrite trouble...

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old November 17th, 2005, 5:09 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Jul 2004
Lives in California, USA
Hosted on Sonet
19 posts
Gave thanks: 3
Thanked 0 times
mod_rewrite trouble...

Okay, I'm new to the mod_rewrite thing and I need some help.

I've successfully redirected my dynamic pages to static addresses using rules like this:
Code:
RewriteRule ^index\.html$ index.php?id=1
Now, I want to 301 redirect any incoming dynamic links to the static addresses. I've tried adding this rule before the previous one:
Code:
RewriteRule ^index\.php?id=1$ index.html [R=301]
It doesn't have any affect. I tried escaping the ? and = characters, but that didn't work either. What am I doing wrong?
Andy Olivera is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On