|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
mod rewrite regex
hi,
i am really a beginner of the mod rewrite thingy. Can any one help me to correct code if i wrote the regex incorrect because it is not working. My original URLs are : www.website.com.au/printingquote.php?thread=stock_intake www.website.com.au/printingquote2.php?thread=2004-03&month=March_2004 ************************************************** ***** I would like to rewrite the URL to : www.website.com.au/print/stock_intake www.website.com.au/2004-03/March_2004 ************************************************** ****** this is the regex that i wrote in my .htaccess file : Options +FollowSymlinks RewriteEngine On RewriteRule ^print\/(.*)$ /printingquote.php?thread=$1 [L,NC] RewriteRule ^(.*)\/(.*)$ /printingquote2.php?thread=$1&month=$2 [L,NC] ************************************************** ****** What i notice is only URL without parameter is redirecting to other URL : www.website.com.au/printingquote1.php thanx in advance, wxyz |
|
#2
|
||||
|
||||
|
I moved the thread as it is more of an Apache [well, mod_rewrite] issue then a PHP issue.
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Advanced Web Development > mod rewrite regex |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|