Jump to content

remove part of url


Guest

Recommended Posts

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

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

Was that solved by selectshop.at?

If your solution is move files to root add something like "solved" :D 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

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...