It worked perfectly on local. But in server only the home page was worked well.Other Url's shows Not found error. I set the apache document root to the Laravel public folder. What is the solution?
If i add index.php in after the domain name,then the corresponding page will shown. But then then the css and js are broken.
I got the solution. It's the permission problem on server. I changed the permission of the folder. Now it's work fine.
Related
My website is setup on a linux server and behind WAF. The files are placed in root folder of apache server. The .htaccess contains rules as specified by wordpress.
The issue is that when I try to access my website as https://www.example.com, it gives ERR_TOO_MANY_REDIRECTS error. But when I try to access the website as https://www.example.com/index.php, it loads and works perfectly fine.
The couple of things I tried to pinpoint the error:
Deleted all files and folders from root folder and created a test index.php file. When I tried to access https://www.example.com, it displayed the contents of this test file
I also tried deleting .htaccess but this didnt help
I am still unable to figure out what the issue is. Can anyone please help out?
disable all your plugins.
in your theme if you using redirect code in your functions or other page , use exit() or die() after your redirect code.
After trying a LOT of suggested solutions online, I fixed the issue by using the plugin Redirection. This plugin solved my issue within minutes!!
Here is the link to the article which helped me.
I have recently moved one website to new server. I have transferred everything properly including mysql database. But now the internal pages are not opening (sending 404 error). Homepage looks fine.
One thing to consider here is that, the website was on shared cpanel with another domain and residing in a folder. Now after moving, it is placed directly in public_html. I hope, this doesn't create any issue.
The website is: http://nepaltrekking.co.kr/
regards,
When hosting changes, we need to take care of the following steps for codeigniter:
Check required php and apache modules are installed and enabled.
If installation is not in root directory, you must change htaccess.
If domain is changed, you need to edit config file for new base_url.
Clear application cache if enabled. Give required write permision in cache directory.
If nothing works, then see error log and correct error accordingly.
Actually I resolved it. The issue was with .htaccess. I changed the permission to 666 and it started working. I think there was problem writing in the .htaccess file.
I have a Laravel 5.2 project working fine locally, after uploading to a live server I have a 'laravel' folder in my root directory and public folder under 'public_html/testsite'
My 'index.php' points to the correct '/bootstrap/autoload.php' and '/bootstrap/app.php'
Upon going to my 'url/testsite/' I get a blank page only (was working fine L5.0) firebug shows : 500 Internal Server Error with HTML : Reload the page to get source for...
index.php is loading by testing with die() before any 'require' methods, but after 'require... autoload.php' the die() is not working, however it is successfully calling autoload.php as a die() works within this file.
I'm not sure if this is a .htaccess issue, or maybe I had to set something up in cPanel last time for this folder (I can't remember). I'd appreciate any help!
Please note this Laravel project sits as a test site in a /testsite/ folder along with my current live site files.
Amongst changing many things at once, I appeared to have solved this by setting up a subdomain within cPanel and setting this to my testsite/ folder.
This was on a server with my current website live under public_html/ and setting up a test laravel app(website) with under public_html/testsite/ to work as an independent site for testing.
The typical "change permissions on storage folder" suggested elsewhere on stackoverflow did not solve my issue so hopefully this helps someone in the same boat.
I have a web application hosted on AWS on Ubuntu server. I have Apache and mysql running on it. It was working perfectly fine till yesterday, All of sudden when I try to access phpmyadmin using my domain name (like http://example.com/phpmyadmin) it gives 404 error.
If I simply type http://example.com on the browser it opens the home page, but if I click on any of the link of my site which refer to different directory, gives the same error.
I have checked the 000-default file under /etc/apache2/sites-enable. My Document Root is set perfectly fine, and directory has Override option to All.
Can any one have any idea then please help me.
Thanks
I am having trouble moving a Wordpress installation from my live server to MAMP. So far I have
Copied all the files from the live server to a directory on my local machine (htdocs)
Backed up the database from PHPMyAdmin
Replaced http://www.mysite.com with (http://)localhost:8888/mysite/
Replaced /var/www/vhosts/mysite/httpdocs/ with /Applications/MAMP/htdocs/mysite/
What I see is the homepage working with all the menus and posts there and the admin seems fine however when I click a menu item I get an error message saying:
The requested URL /index.php was not found on this server.
I cannot get past the homepage. Can anyone help? Many thanks in advance.
My best guess is that you've not updated your .htaccess file. You'll need to change your RewriteRules.
This is (probably) because your site was originally on the root of your webserver and now it's in a subdirectory within your MAMP.