|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
||||
|
||||
|
Apache Mod_Rewrite
The past few days I've been trying to get mod_rewrite to work with little success...
My first problem, although minor right now, is that a .htaccess file doesn't seem to be aknowledged by Apache. So instead, i'm copying my RewriteRule's in the httpd.conf file... they read as follows: Code:
RewriteRule ^/venue/(.*)$ /browse\.php?action=venue&name=$1 RewriteRule ^/venues$ /browse\.php?action=venue RewriteRule ^/concert/(\.*)/(\.*)$ /browse\.php?action=concert&id=$1&name=$2 RewriteRule ^/concerts$ /browse\.php?action=concert All of them work, except the second from last one... I expect: /concert/182/Rock+Show To be converted to: /browse.php?action=concert&id=182&name=Rock+Show Instead i get a 404: "/concert/182/Rock+Show not found" However "/venue/Warehouse" works no problem... The .htaccess file problem isn't that big of a deal to me right now... although strange, I can work around that... Its mod_rewrite that i'm looking for fix right now... Although suggestions for either issue is greatly appreciated! |
|
#2
|
||||
|
||||
|
Quote:
You need to turn allow overides on in httpd config. Quote:
Code:
RewriteRule ^/concert/(.*)/(.*)$ /browse\.php?action=concert&id=$1&name=$2 ![]()
__________________
~ Joe Penn We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set? Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you. |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Apache Mod_Rewrite |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|