Jump to content

[SOLVED]remove prestashop from adress bar


Recommended Posts

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 website
i 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/prestashop

now 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

Ok any one else that is having this problem i have now manage to sort this out

1. 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 links
6. 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 helps
regards

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...