My website isn't working after uploading or moving it
Does your website not work after you've uploaded it or moved it to WebOké? Below you'll find the most common causes and what to do about them. If you're using WordPress, also check the block about WordPress.
You still see the default WebOké page
- The file
index.htmlof the default page is still there. Delete it. - Your browser is still showing the old page. Clear your cache or try a private window.
- Check whether you've put the site in
domains/yourdomain.nl/public_html, and not in a folder above or next to it.
The site loads, but some images or pages don't
Watch out for capital letters. Our servers distinguish between Photo.jpg and photo.jpg. If a link points to photopage.html while the file is named Photopage.html, it won't be found.
WordPress: the home page works, but other pages give a 404 error
This often happens after an installation or a move. Usually the .htaccess file with the rules for the clean addresses (permalinks) of WordPress is missing. Go through these steps:
- Save the permalinks again. Log in to WordPress, go to Settings › Permalinks and click Save Changes without changing anything. WordPress will then recreate the
.htaccess. - Check the .htaccess. In DirectAdmin, open File Manager and go to
domains/yourdomain.nl/public_html. If you don't see a.htaccess, first turn on hidden files. If the file is missing or empty, create it with this standard WordPress content:# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPressIf WordPress is in a subfolder, for examplepublic_html/blog, then it becomesRewriteBase /blog/andRewriteRule . /blog/index.php [L]. - Check your site's address. In WordPress, go to Settings › General. The WordPress address and the site address must be your actual domain, with
https://, and no longer the old or temporary address. See also Forcing visitors to https. - Check the folder. Is WordPress in a subfolder, while visitors should see the site on your domain? Read Using a subfolder in public_html as the main folder or Changing the document root of a domain.
.htaccess can make your entire site unreachable with a 500 error. Make a copy of the file first before you edit it. If there are already rules from a plugin, such as a caching plugin, leave those in place and put the WordPress block below them.Are you also protecting a folder with a password? Then read .htaccess: clean URLs and still protect a folder.
The site doesn't load at all
- Is there an
index.html,index.htm, orindex.phpin public_html, in lowercase letters? - Have you uploaded or modified an .htaccess file? An error in it often causes a 500 error. Read 500 Internal Server Error.
- Have the permissions of files or folders changed? Folders should usually be set to 755 and files to 644.
Also see in the DirectAdmin manual: Showing and editing hidden files such as .htaccess, Permissions of files and folders (chmod), and My website is blank or gives a 500 error.
Detailed explanation with screenshots: Uploading and downloading files in the DirectAdmin manual.
