Jump to content

[Solved] Hide ip address of website and location of subfolder of prestashop.


Recommended Posts

when I go to my domain it directs to a subfolder within my hosting. I have used .htaccess to do this.

 

However say if I go to my website:

 

www.mywebsite.co.uk

 

It shows up as:

 

http://77.45.75.191/...ame/prestashop/

 

Which is then shows index.php of prestashop. How would I hide the details so it only shows:

 

http://www.mywebsite/index.php and then any categories or links they use after that.

 

The current code that I am using is:

 

 

 

# Do not change this line.

 

RewriteEngine on

 

# Change yourdomain.com to be your primary domain.

 

RewriteCond %{HTTP_HOST} ^(www.)?mywebsite$

 

# Change 'subfolder' to be the folder you will use for your primary domain.

 

RewriteCond %{REQUEST_URI} !^/prestashop/

 

# Don't change this line.

 

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

 

# Change 'subfolder' to be the folder you will use for your primary domain.

 

RewriteRule ^(.*)$ /prestashop/$1

 

# Change yourdomain.com to be your primary domain again.

# Change 'subfolder' to be the folder you will use for your primary domain

# followed by / then the main file for your site, index.php, index.html, etc.

 

RewriteCond %{HTTP_HOST} ^(www.)?mywebsite$

RewriteRule ^(/)?$ prestashop/index.php [L]

Link to comment
Share on other sites

×
×
  • Create New...