|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
ModRewrite
Sorry if this a bad forum
![]() In .htaccess file i have: Code:
RewriteEngine On RewriteRule ^test/(.*)/(.*).php /test.php?action=$1&ok=$2 and in test.php file i have: PHP Code:
When i'm going to: URL it's show: hello hello again (and this is good) but when i'm going to: URL then it's show 404 error why?? but when i'm going to: URL then it's show: hello and for me this is bad becouse i want that URL shows hello Last edited by sZen : August 26th, 2003 at 02:00 PM. |
|
#2
|
|||
|
|||
|
Understand that I did not test this, but, at first glance I think you need to take into consideration your two scenarios by adding this second rule:
Code:
RewriteRule ^test/(.*).php /test.php?action=$1
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > ModRewrite |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|