0

I have a local project on my pc, that I have uploaded in a Hosting in GoDaddy.

public_html/production/index.php
public_html/includes/conection_DB.php

In order to access my webpage I have to write in the url: example.com/production/index.php

It works fine, but is there a way to configure something in GoDaddy or in PHP in order that the url show: example.com/index.php

JamesBond
  • 312
  • 2
  • 17

1 Answers1

0

Create a .htaccess file and add the following

RewriteEngine On 
RewriteRule /production

the above should redirect any traffic from exapmle.com to example.com/production

JamesBond
  • 312
  • 2
  • 17