![]() |
.htaccess - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: .htaccess (/showthread.php?tid=11335) |
.htaccess - El Forum - 09-04-2008 [eluser]Unknown[/eluser] I have the following rules on my .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^(.*)forum http://www.google.com [L] RewriteCond $1 !^(index\.php|gzipcss\.php|gzipjs\.php|img|css|src|swf|xml|js|robots\.txt|favicon\.ico) RewriteRule ^(.*)$ /index.php/$1 </IfModule> What I want is? If the user dial something that include the word forum, it is redirect to the google homepage, otherwise, I have to rewrite my url to include the index.php on it. But It is not working. When I put something with the word forum i have a peg not found from code igniter. .htaccess - El Forum - 09-04-2008 [eluser]mglinski[/eluser] Code: RewriteRule ^(.*)forum(.*)$ http://www.google.com [L] -Matt |