phonestreet Posted September 1, 2011 Share Posted September 1, 2011 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 More sharing options...
phonestreet Posted September 5, 2011 Author Share Posted September 5, 2011 Bump for help please Tried everything now! Link to comment Share on other sites More sharing options...
Kerm Posted September 5, 2011 Share Posted September 5, 2011 Dude, I offer to you put presta in root folder or create subdomain..don't do this crap width subfolders...also generate default .htaccess from prestashop BO. Link to comment Share on other sites More sharing options...
phonestreet Posted September 6, 2011 Author Share Posted September 6, 2011 I have made a sub domain and when you go to it (where it has been directed to) it still shows the full server ip and path directories. Link to comment Share on other sites More sharing options...
phonestreet Posted September 7, 2011 Author Share Posted September 7, 2011 I found out what to do. Go to Back office then preferences. From there hit SEO&URLs...if you have your server ip in there you must delete it and replace it with your domain name. Link to comment Share on other sites More sharing options...
Recommended Posts