Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 10th, 2001, 05:10 PM
piet piet is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Bend, OR
Posts: 96 piet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Need help with this rewrite rule

Hi,

1. My phpmyadmin program (a program that manages my MySql database) is located, by default, in http://localhost/phpmyadmin/. However, I have a rewrite rule (mostly put together with the help of freebsd and jizzaz..thanks!) in my httpd.conf file that goes something like this:

<Directory "/apache/htdocs">
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/index\.php.*
RewriteRule ^(.+) - [L]
# If the URL is http://localhost/phpinfo/ then bring up phpinfo.php
RewriteCond %{REQUEST_URI} ^/phpinfo$
RewriteRule ^(.+) phpinfo.php [L]
RewriteCond %{REQUEST_URI} ^/(.*)$
RewriteRule ^([A-Za-z0-9]+)/?$ index.php?request=$1 [T=application/x-httpd-php,L]
RewriteRule ^(.+) index.php?request=$1 [T=application/x-httpd-php,L]
</Directory>

So now I can structue my URL's as such...

Ex. http://localhost/Category/Group/Product/etc... (No big deal...it's only been discussed here 100 times)

2. PROBLEM. When I go to my phpmyadmin program it won't load since it thinks that the "Category == phpmyadmin" So I put this in my in my ReWrite Rule:

RewriteCond %{REQUEST_URI} ^/phpmyadmin
RewriteRule ^(.+) /phpmyadmin [L]

Saying if it ever came across a URL like http://localhost/phpmyadmin/ then forget the rest of the Rewrite rules and just go to /phpmyadmin. However, this does not work(conversly, when I go to http://localhost/phpinfo/ it does work). Does anyone know why and can they help me?

Thanks alot!

Piet

Last edited by piet : August 11th, 2001 at 12:51 AM.

Reply With Quote
  #2  
Old August 10th, 2001, 10:46 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You need to put this rules first (higher priority):

RewriteCond %{REQUEST_URI} ^/phpmyadmin.*
RewriteRule ^(.+) - [L]

Reply With Quote
  #3  
Old August 11th, 2001, 12:52 AM
piet piet is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Bend, OR
Posts: 96 piet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Thanks again freebsd!

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Need help with this rewrite rule


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 1 hosted by Hostway