|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Rewrite url on fly
hi pals,
i have a database driven site that genertes URLs like www.domain.com/index.php?linkname=toys&maincat=games i want to change it with .htaccess and mod-rewrite to URL such as www.domain.com/toys/games please help me in writing the Regular expression for this, i tried this but it gives 500 Internal Server Error RewriteRule ^www.domain.com/[a-z]/[a-z]$ www.domain.com?index.php?linkname=$1&maincat=$2 thanks for your time |
|
#2
|
|||
|
|||
|
RE: Rewrite url on fly
First off, never include the domain in the regular expression. The only part you need to worry about is the part after the domain extension.
Second, read this: http://www.webmasterstop.com/125.html |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > Rewrite url on fly |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|