werepair Posted March 6, 2011 Share Posted March 6, 2011 hi,i have installed prestashop 1.3.7 in my root of the website in a folder called prestashopnow when i go to my home page the address comes up as http://www.mystore.co.uk/prestashop/'>http://www.mystore.co.uk/prestashop/how would i be able to remove the prestashop from the address bar so i can view my website at http://www.mystore.co.ukregards Link to comment Share on other sites More sharing options...
echonetic Posted March 7, 2011 Share Posted March 7, 2011 Is there a reason you dont want to move it to root? The would be the best way to handle this, especially if you are going to add an ssl certificate. domain masking and mirroring wreaks havoc on ssl set up. Link to comment Share on other sites More sharing options...
werepair Posted March 7, 2011 Author Share Posted March 7, 2011 hi, thanks for the reply,sorry if i did not explain it properly as this is what i wish to do but i dont know how to, could you please explain as this is my first websitei want my website to reside in the root of my server so it can be reached at the following address http://www.mystore.co.uk and not http://www.mystore.co.uk/prestashopnow it is installed in the root of my website in a folder called "prestashop", what i need to know is how do i move all the files to the root of the website and will i then have to alter any files or the database to point to the new location.if so what files do i need to alter please.regards Link to comment Share on other sites More sharing options...
werepair Posted March 7, 2011 Author Share Posted March 7, 2011 Ok any one else that is having this problem i have now manage to sort this out1. Make a backup of your database and website from your control panel and download it to your pc.2. go to your admin BO and go to prefrences and remove /prestashop/ from the ps directory 3. download your settings.inc.php and change it so it looks like this define ('__PS_BASE_URI__', '/'); 4. now login to your control panel and move all your files up 1 level out of the photoshop folder to the root. or you can rename your prestashop directory to prestashop.old and upload your back up files to the root of the server, if you have any problems then it is just a case of renaming your prestashopold folder back to prestashop.5. Then goto myphpadmin in your control panel and select your database, go through all the tables and remove "prestashop from the sites links6. or if you want to leave the file system how it is you can do a redirect in your .htaccess file like this (found this on the forum ) # Copy and paste the following code into the .htaccess file #in the public_html folder of your hosting account #make the changes to the file according to the instructions. #Do not change this line - RewriteEngine on RewriteEngine on #Change yourdomain.com to be your main domain. RewriteCond %{HTTP_HOST} ^(www.)?mysite.com$ #Change 'subfolder' to be the folder you will use for your main 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 main domain. RewriteRule ^(.*)$ /prestashop/$1 #Change yourdomain.com to be your main domain again. #Change 'subfolder' to be the folder you will use for your main domain #followed by / then the main file for your site, index.php, index.html, etc. RewriteCond %{HTTP_HOST} ^(www.)?mysite.com$ RewriteRule ^(/)?$ prestashop/index.php [L] hope this helpsregards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now