Forum Moderators: phranque
1. i opened httpd.conf
2. searched for "#LoadModule rewrite_module modules/mod_rewrite.so" and removed the "#"
3. searched for "AccessFileName .htaccess" and replaced it with "AccessFileName htaccess.txt" because windows can't handle files that begin with a dot.
5. generated some basic htaccess.txt file and inserted it on the root webfolder.
4. restarted apache2.
it resolved a 404 err... it's just not working. any ideas?
LoadModule rewrite_module modules/mod_rewrite.so
AllowOverride All
Options All
But it doesn't do the trick.
I have this:
*****************
RewriteEngine on
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^(.*)/_([A-Za-z]{2})$ /index.php?l=$2 [L]
*****************
So that www.mysite.com/some/section/_es
redirects to index.php?l=es
and,
So that www.mysite.com/some/section/_en
redirects to index.php?l=en
all that loads the language file (spanish or english). on my linux installation (at work), it runs fine. but on my windows installation (at home), the $2 variable is not pased to the index.php
does it has to do something with the httpd.conf?