SunQuest
 
           Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old April 9th, 2004, 09:59 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
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!

Reply With Quote
  #2  
Old April 10th, 2004, 08:52 PM
jpenn jpenn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Washington, DC
Posts: 317 jpenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 3 sec
Reputation Power: 6
Quote:
My first problem, although minor right now, is that a .htaccess file doesn't seem to be aknowledged by Apache

You need to turn allow overides on in httpd config.
Quote:
I expect: /concert/182/Rock+Show
To be converted to: /browse.php?action=concert&id=182&name=Rock+Show

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.




Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Apache Mod_Rewrite


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway