php + htaccess, one more time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So... this is my .htaccess:

RewriteEngine on
# Language
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/_([A-Za-z]{2})/?$ /index.php?l=$2 [L]
# Sections
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php [L]

That means:
www.mysite.com/about_us/employees/
goes to index.php

www.mysite.com/about_us/employees/_es
goes to index.php?l=es

I manage the REQUEST_URI inside the index.php. The problem comes when
i don't call any previous directories when calling a language:
www.mysite.com/_es

...it takes the second rewriteCond instead of the first one. help!

--
Slds,
Andrés Santos, IIG

*****************************
cel: (593) 9 7026627
http://www.egobits.com
*****************************


PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux