Welcome Guest, Not a member yet? Register   Sign In
SOLVED Immediate Help Needed! I migrated my website and it doesn't work now.
#1

[eluser]caglarutkuguler[/eluser]
I recently migrated my CI website to a new server using a different domain name. The problem is that although the home page is displayed, none of the links work. I always get the same error message and no additional message: 404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

I searched the net but couldn't come up with any solutions. My URL: Click here to visit my CI Website

My .htaccess file:

Code:
RewriteEngine on
RewriteRule ^$ /index.php [L]
RewriteCond $1 !^(index\.php|images|css|js|logs|sudokuwebyonetim|files|upload|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ /index.php/$1 [L]

Please help me to overcome this problem. Thanks.
#2

[eluser]Bart Mebane[/eluser]
On some servers you need to add a question mark after index.php, like this:
Code:
RewriteEngine on
RewriteRule ^$ /index.php [L]
RewriteCond $1 !^(index\.php|images|css|js|logs|sudokuwebyonetim|files|upload|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ /index.php?/$1 [L]
#3

[eluser]caglarutkuguler[/eluser]
[quote author="Bart Mebane" date="1291167372"]On some servers you need to add a question mark after index.php, like this:
Code:
RewriteEngine on
RewriteRule ^$ /index.php [L]
RewriteCond $1 !^(index\.php|images|css|js|logs|sudokuwebyonetim|files|upload|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ /index.php?/$1 [L]
[/quote]

I did what you advised right away, but didn't work. Please help me.
#4

[eluser]Bart Mebane[/eluser]
Your links work if you include index.php in the url, so it's probably an htaccess problem. I'm not an htaccess expert, but this is the one I use:
Code:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
You can try it with and without the question mark. Make a backup of your original version.
#5

[eluser]caglarutkuguler[/eluser]
Thanks for the insight. At least you lit a light Smile
I tried your .htaccess but didn't work.
Do you know any htaccess expert?
#6

[eluser]Bart Mebane[/eluser]
Quote:Do you know any htaccess expert?
No, but I'm sure there are some on the forum.
#7

[eluser]caglarutkuguler[/eluser]
Thanks for your help
#8

[eluser]Unknown[/eluser]
Hi everyone here.I am so glad to come in here,good to see you all.
#9

[eluser]caglarutkuguler[/eluser]
SOLVED.

I changed my server. It was a Windoes server with PHP support. I switched to a LINUX server and it is working now.

Thanks for all your help. Especially thnx to teampoop and InsiteFX!
#10

[eluser]mike7418[/eluser]
Ahh the Windows IIS server. rewrites are a bit more difficult on IIS. Linux Apache just has to have mod_rewrite installed




Theme © iAndrew 2016 - Forum software by © MyBB