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
I need somebody who knows some basic regex/.htaccess :)
Old 03-09-2011, 07:04 PM Post I need somebody who knows some basic regex/.htaccess :)
Physicsguy's Avatar
404 - Title not found

Posts: 920
Name: Scott Kaye
Location: Ontario
Trades: 0
Hi,

I've been trying to get this .htaccess redirect to work for a while now, but I just can't.

Basically I want to be able to turn a URL like this:

localhost/cms/viewpost.php?postID=NUMBER

into this:

localhost/cms/post/NUMBER-STRING.html


Where if the visitor followed a link that looked like this:

localhost/cms/post/72-Post+Name.html


it would show them

localhost/cms/viewpost.php?postID=72

But I can't do that. It's simple, but I'm horrible with regular expressions.

Thanks a lot!
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!

Last edited by Physicsguy; 03-09-2011 at 07:08 PM..
Physicsguy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to I need somebody who knows some basic regex/.htaccess :)
 

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