Freenom domain shows directory listing!

My website URL is:
http://www.umbracian.ga
http://umbracian.epizy.com/

What I’m seeing is:
After adding servers’ name to Freenom and took a bit of time it works but shows directory listing!

Is that because I didn’t remove http://umbracian.epizy.com/?

You need to upload your website files also on umbracian.ga/htdocs with a FTP client, so that your website will work also on that domain.

Does that mean two instances of the website will exist?

You may redirect users from the subdomain after uploading the files on the domain htdocs folder. Just delete all the files inside the subdomain htdocs folder, and then add on the index.php file that you need to create these contents:

<?php
header("Location: http://www.umbracian.ga");
die();
?>
1 Like

Thank you, @Ergastolator1

1 Like

Wouldn’t an alternate way to do it would be to do it as an Alias (Parked Domain)?

But like so there will be two instances of the same website and the website redirect script will not work.

Is there a possibility to avoid having duplicate code? by redirecting subdomain to free domain and having one single code directory.

i.e Having Wordpress site like this news template and free domain like ArabHours.

But then using the domain as a parked domain (Alias) wouldn’t you not need the redirect script anymore?

@jweaver, using the domain as a Parked Domain all the contents of the subdomain’s htdocs will also be reflected on the domain itself. If you try to redirect the users from the subdomain to the domain, there would be a redirect loop. So if you want to have a only working directory, adding the domain as an Addon Domain, uploading all your website files to yourdomain/htdocs, removing the files inside the precedent htdocs and adding my redirect script should help.

@Umbracian, you may need to move your WordPress installation to yourdomain/htdocs by downloading all the files on the htdocs on a folder of your computer, delete all the files from the htdocs, and upload the files inside the folder on where you downloaded the WordPress files on yourdomain/htdocs with a FTP client. After that open your phpMyAdmin on your other WordPress database, open the “options” table, and change the URLs on home and siteurl to point to the new URL address. With the File Manager, open the htdocs folder of the subdomain, and create the index.php with the following contents:

<?php
header("Location: http://www.arabnews.ml");
die();
?>

and that’s it.

1 Like

Thank you, I made a redirect via cpanel > domains > redirects

1 Like

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