Guest Posted September 21, 2015 Share Posted September 21, 2015 Hello I'm using folders staging and live for dev and production, I need to remove the live part from http://example.com/live. Normally I get this working but for Prestashop I can't, so maybe someone has working .htaccess? I'm fairly noobish at this I must admit. root: RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?example.com$ RewriteCond %{REQUEST_URI} !^/live/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /live/$1 RewriteCond %{HTTP_HOST} ^(www.)?example.com$ RewriteRule ^(/)?$ live/index.php [L] Prestashop .htaccess remains untouched, this is a new install btw. Thanks for your time Link to comment Share on other sites More sharing options...
Guest Posted September 23, 2015 Share Posted September 23, 2015 20 bucks for first working solution Link to comment Share on other sites More sharing options...
selectshop.at Posted September 23, 2015 Share Posted September 23, 2015 Why you don't move your live shop to root and remain the dev on dev sub-folder by adding to it a password for no access from outside ? This is the way I'm doing for cloned shops or devshops of a liveshop. Link to comment Share on other sites More sharing options...
Guest Posted September 25, 2015 Share Posted September 25, 2015 Yeah, I think that's the best solution, chrome acts really weird with some htaccess setups (could not log in to admin backend), all others browsers are fine though. Link to comment Share on other sites More sharing options...
wippa Posted September 26, 2015 Share Posted September 26, 2015 20 bucks for first working solution Was that solved by selectshop.at? If your solution is move files to root add something like "solved" please. If your problem still remains I can configure your .htaccess to do whatever you need. Regards. Link to comment Share on other sites More sharing options...
Guest Posted September 28, 2015 Share Posted September 28, 2015 Was that solved by selectshop.at? If your solution is move files to root add something like "solved" please. If your problem still remains I can configure your .htaccess to do whatever you need. Regards. I'd rather have sub folders so that when a new PS version comes out I can make a new sub folder, install from scratch, add all my customizations and data and then set that folder to production. I've had too many upgrade issues to be able to rely on them. Real breaking stuff, I'd rather install from scratch and do the extra work. Let me know what you need and i'll provide, if it takes longer I will pay you more. 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