Welcome Guest, Not a member yet? Register   Sign In
.htaccess problem..
#1

[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
#2

[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!
#3

[eluser]Eren[/eluser]
thanks dude.. trying now




Theme © iAndrew 2016 - Forum software by © MyBB