403 Forbidden

Website URL

macedoniansweregreeks.com (added this domain and gives error 403 Forbidden)
http://macedoniansweregreeks.infinityfreeapp.com/ (is working)
http://macedoniansweregreeks.infinityfreeapp.com/blog (used to work - now gives 404 Not Found after adding domain)

Error Message

403 Forbidden: Server or website configuration is blocking you from viewing this page

and

404 Not Found: The page you were looking for could not be found!

Other Information

There is an index.php file in the htdocs folder of the working url.
The directory of the domain appears to have an empty htdocs folder.

There is your answer. If you have an index.php in the directory of a website, it works. If you don’t have an index.php, it doesn’t work.

Directory listing is disabled by default on our hosting, so you’ll see a 403 Forbidden error if you try to open a directory without an index file. You can read more about that here: Redirected to InfinityFree 403 Forbidden page

To fix macedoniansweregreeks.com, simply upload a index.php file to the htdocs directory of the domain.

4 Likes

Thanks. I copied the index.php file from http://macedoniansweregreeks.infinityfreeapp.com/ but I get this error:
www.macedoniansweregreeks.com is currently unable to handle this request.
HTTP ERROR 500

Also it seems that the links on macedoniansweregreeks.infinityfreeapp.com are not working anymore.

Read this

3 Likes

Looking at the first website, your website is built using WordPress. If you want to migrate it to a different domain, you’ll need to migrate all files, not just the index.php file.

If you want both websites to use the same code, you can also delete the .com domain from your account, and add it back as a Parked Domain, linking it to the same directory as your free subdomain instead of a separate directory.

However, WordPress natively doesn’t support displaying the same content on two different domains. Maybe there is a plugin to do it, or maybe you just need to move the website to the .com domain and forget about the free subdomain. Then you can change your site to use your .com domain: Changing The Site URL – Documentation – WordPress.org

Your website appears to be configured to use pretty URLs, but no .htaccess rules are set up to make that work. I see you renamed your .htaccess file to old.htaccess. Please change it back to fix this issue.

4 Likes

Thanks. I parked the domain and it’s operational. But the downside is that my domain is redirected to the subdomain. I would have liked for a user to see the URL of my domain http://www.macedoniansweregreeks.com/ rather than that of the subdomain http://macedoniansweregreeks.infinityfreeapp.com/.

Great! Now you just need to change your site URL in WordPress to make your free subdomain redirect to your custom domain, instead of the other way around.

4 Likes

Thank you for your suggestion but unfortunately I find it too complicated for me as I am not well-versed in these matters.
I guess I will have to leave my domain parked and apply an old engineering principle: ‘if it works, don’t f*** with it’ :wink:

It is relatively easy. Quoting from the article, this is all you’d need to do:

On the Settings → General screen in a single site installation of WordPress, there are two fields named “WordPress Address (URL)” and “Site Address (URL)”.

You’d need to change both of these addresses to your new one, that is, http://www.macedoniansweregreeks.com/.

If you wish to leave it unchanged though, that’s fine too :slight_smile:

2 Likes

Hi.
I had done that too, but all the links in the frontpage (and other pages) direct to the subdomain/link instead of my_domain/link and images and other stuff don’t load properly.

Hi JimmyP,

This is actually a common issue found whenever you just migrated a WordPress website over and changed the home_url option. Besides that setting, you also need to replace every single occurrence that has your old domain with the new domain, otherwise, your images and resources will still attempt to look for things in the old place.

You can achieve this via migration plugins’ replace URL feature, or simply by MySQL queries. If you use Elementor, you can simply regenerate everything to refresh the data once more.

Cheers!

5 Likes

Thank you for the tip! I didn’t know Elementor could regenerate everything.
So I fixed the general site setting and then in Elementor I regenerated everything with my domain url.
Now everything works.

Thanks to all for your help!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.