Reply
mod_rewrite help please :(
Old 04-04-2008, 03:43 PM mod_rewrite help please :(
Novice Talker

Posts: 7
Hi Guys,
I'm trying to make a rewrite rule and I just can't seem to understand regular expressions at all.
Sorry for my ignorance. It is just not my cup of tea

Would someone be so kind as to paste me an example to get this running....

I have a sub directory with 1 php file that is a full details veiw...

/subdir/page.php?key=1464466

I have aprox 1.4 million plus pages ands all are referenced by the id number in this case

Code:
RewriteRule ^(.*)$ page.php?key=$1 [L,QSA]
I want to generate links as <?php print $url-root . "/subdir/1464466.htm"; ?>
and rewrite to take care of the request

After pullingmy hair I'm turing to you guys

Thanks,
RD
RDWest2005 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-04-2008, 04:01 PM Re: mod_rewrite help please :(
Novice Talker

Posts: 7
UPDATE!

I got it guys,

So I wanted to save you from posting thanks...

The fix was...

RewriteRule ^(.*).htm page.php?key=$1


and i dynamically write out links as 6534674.htm


RD
RDWest2005 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to mod_rewrite help please :(
 

Thread Tools

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10883 seconds with 13 queries