.htaccess + removing index.php not working + The requested URL /about/ was not found on this server. |
[eluser]Unknown[/eluser]
Hello, my sites url is http://www.loyalto.com/ I have used following code in my htaccess file,-- RewriteEngine on Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST} ^(.+)\.loyalto\.com [NC] #RewriteCond %{HTTP_HOST} !www\.loyalto\.com [NC] RewriteCond $1 !^(index\.php|images|video|photos|js|AFLAX|css|robots\.txt) RewriteRule ^(.*)$ /index.php/groupSite/domain/mukesh/$1 [L] But when I am trying with http://www.loyalto.com/about/ it is showing error- The requested URL /about/ was not found on this server. If i put index.php in the url it is working.(http://www.loyalto.com/index.php/about/). And I have also tried with simple htaccess file like, RewriteEngine on RewriteCond $1 !^(index\.php|images|video|photos|js|AFLAX|css|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] But it is still not working... Can any one helps me.. Nilesh.
[eluser]maesk[/eluser]
I'm really no expert in htaccess. I usually have to experiment a bit with the .htaccess file until it works :-) Anyways, this works for me, you may want to give it a try: Quote: RewriteEngine On Also, try adding a question mark after "/index.php" in your RewriteRule.
[eluser]Maulwurf[/eluser]
maesk, this works for me, too. Great one! Don't forgett to set $config['index_page'] = ""; |
Welcome Guest, Not a member yet? Register Sign In |