Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



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

Posts: 7
Trades: 0
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
 
 
Register now for full access!
Old 04-04-2008, 05:01 PM Re: mod_rewrite help please :(
Novice Talker

Posts: 7
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.09512 seconds with 12 queries