I uploaded a cakePHP project to the Godaddy server.
I have also seen this link. But not solve the error:-
500 internal server error occured in CakePHP 3?
How to solve cakephp 500 Internal Server Error?
CakePHP 500 Internal Server Error
CakePHP shows 500 Internal Server Error
My .htaccess code in /root/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
In /root/app/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
In /root/app/webroot/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
This error is still coming after a lot of effort.
Please Help?
It may not be a problem everytime. Your .htaccess code may be alright. Please check permission of your root folder on godaddy server. It dependent on which type of server you use. Please enable to your folder permission on server. Then it may be working for you.
Related
I was trying to migrate a codeigniter application on one server to another but i am getting HTTP 500 error on godaddy and 404 error on dreamhost.
I have transferred the files to root directory and uploaded the database. I have changed the config and database php files, but its still not working.
The .htaccess file consists the following code:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
#incluye el / final
RewriteBase /
RewriteRule ^$ index.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>
I don't know how the htaccess works. Please help me with the issue.
The following are the snapshots of the erros:
I was wondering what caused my sub-domain to get 500 error. I guess it is due to my .htaccess file. I cannot access my sub-domain at all. The main directory is working fine. Only the sub-domains.
This is my .htaccess code
php_value auto_prepend_file none
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
</IfModule>
I fixed it by adding .htaccess file using the same code
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
we have a magento website www.oursite.in, when i use http://www.oursite.in/mobiles.html, it works fine (i.e. index.php isn't required / doesn't appear in the url).
but when I type https://www.oursite.in/mobiles.html, it says 404 not found error https://www.oursite.in/index.php/mobiles.html works fine.
how do i rewrite url for https url in .htaccess?
or
is there any other configuration changes in magento?
can somebody throw some light on this for me?
link below explaining htaccess for https, though it is for codeigniter developer but it will work for magento to..
http://ellislab.com/forums/viewthread/86113/
RewriteRule ^(.*)$ index.php/$1 //this line will hide index.php from url
<IfModule mod_rewrite.c>
RewriteEngine on
Options +FollowSymLinks
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
I have uploaded my application on bluehost server. I have uploaded it on public_html.
htacces on root
/.htaccess permission 644
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
/app/.htaccess permission 644
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
/app/webroot/.htaccess permission 644
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
url is http://consumersinchrist.org/. Please help.
Go to cpanel->PHPConfig and enable FastCGI , it will work like a charm :)
Is this a new host for you? When I switch hosts, there's usually a unique small configuration that needs to be done to get my custom apps to work.
Check out these links from BlueHost:
Help 1
Help 2
Working with cakePHP
My index.php is in www.domain.com/httpdocs/sub/app/webroot
Previously, on shared hosting I just replaced "domain.com/" with "domain.com/app+core directories" (without httpdocs/ or sub/)
I've moved to media temple dedicated virtual server and am hitting a 403 forbidden error:
"You don't have permission to access /sub/ on this server."
Permission is set to 755 for sub/ directory
In domain.com/sub/app -> .htaccess file:
Code:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /sub/app/
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
In domain.com/sub/app/webroot -> .htaccess file:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteBase /sub/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
I've tried:
Right now httpdocs/ contains blank index.html and simple redirect:
Redirect /index.html http://domain.com/sub/
Creating another .htaccess file for /sub, but that seemed to confound things further.
I'm on media temple, followed this article: http://wiki.mediatemple.net/w/403_Forbidden_error
Thanks
Noticed you were having some issues with your (dv). We just wanted to let you know that we are here to help you with any problems that you may have. If you keep running into these errors, please open up a Support Request so we can help you out.