|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
You need to put this rules first (higher priority):
RewriteCond %{REQUEST_URI} ^/phpmyadmin.* RewriteRule ^(.+) - [L] |
|
#3
|
|||
|
|||
|
Thanks again freebsd!
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Need help with this rewrite rule |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|