.htaccess problem.. |
[eluser]Eren[/eluser]
hello guys , i'm new here. i just have a couple of questions related to .htaccess my .htaccess file here is like ; RewriteEngine on RewriteCond $1 !^(index\.php|images|profilepic|viral|flashplayer|flashchat|thumbs|user_guide|stylesheet|captcha|javascript) RewriteRule ^(.*)$ index.php/$1 [L] it works under windows with wampserver.. after i uploaded my all files to linux server.. apache is onto centos.. after uploading , while checking my system , i figured out that actually it doesnt work. for example , if i want to call a controller class like http://site.com/myclass work under windows.but not in linux.. i have to add additional index.php to the url to make it worked under linux like this http://site.com/index.php/myclass is there anybody out there who faced this problem before ? thank you. eren
[eluser]Flemming[/eluser]
first thing to do is work out if your .htaccess is actually doing ANYthing at all ... put this as your first rewrite rule and see what happens: Code: RewriteRule ^(.*)$ http://google.com [R=301,L] if you end up at google when you try and visit your site then at least you know rewrite is working!
|
Welcome Guest, Not a member yet? Register Sign In |