lundi 23 février 2015

404 not found when using htaccess in GoDaddy


After uploading my files in GoDaddy, the only page that can be viewed in my site is my home page, and when I click to other page, a 404 Page Not Found appear. Here is my .htaccess file written in Sublime Text



Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|my_assets|images|css|js|fonts|install|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]


I have read some articles that if you write it in notepad or sublimetext, it won't work when uploaded to GoDaddy. I'm not sure if its true. Do I need some IDE or an editor for .htacces? Or my .htaccess has a missing code or whatever.





Aucun commentaire:

Enregistrer un commentaire