Jump to content

How to redirect prestashop?


Recommended Posts

Hi,

.htaccess must be in the root folder (yes, of that version as well), can you doublecheck? Do you have access to all files or restricted permissions on the server?

Hi. Oh, thank you. I've check in file explorer, .htaccess file is there.

Then what is the next step to proceed redirect?

Link to comment
Share on other sites

I don't know why are you trying to achieve this, because you can move all the folder contents and show that page without modifying anything. If you still want to redirect simply add these line in top of your .htaccess file content.

 

Redirect 301 /denmall http://eviewtrading.com/denmall/denmall

 

There are also other methods if you want to redirect all pages related to your site. I just have given idea about simple redirect. 

Link to comment
Share on other sites

I don't know why are you trying to achieve this, because you can move all the folder contents and show that page without modifying anything. If you still want to redirect simply add these line in top of your .htaccess file content.

 

Redirect 301 /denmall http://eviewtrading.com/denmall/denmall

 

There are also other methods if you want to redirect all pages related to your site. I just have given idea about simple redirect. 

 

I have multishop:

1. default shop: http://eviewtrading.com/denmall and

2. new shop group: http://eviewtrading.com/denmall/denmall/

I just want to enable that new shop group, but I cant disable the default shop.

Therefore I want customer when clicking  http://eviewtrading.com/denmall , been redirect to my new shop group.

Edited by Lance Chan (see edit history)
Link to comment
Share on other sites

I don't know why are you trying to achieve this, because you can move all the folder contents and show that page without modifying anything. If you still want to redirect simply add these line in top of your .htaccess file content.

 

Redirect 301 /denmall http://eviewtrading.com/denmall/denmall

 

There are also other methods if you want to redirect all pages related to your site. I just have given idea about simple redirect. 

Hi. I tried your suggestion, when i click on http://eviewtrading.com/denmall/ , there's show 

This web page has a redirect loop

My .htaccess is like this:

 

Redirect 301 /denmall http://eviewtrading.com/denmall/denmall

How to solve this?

Link to comment
Share on other sites

Ohh I see. I think your first website url is http://eviewtrading.com/denmall.

Try these codes else we'll redirect it by the website url.

Redirect 301 / http://eviewtrading.com/denmall/denmall

or 

Redirect 301 / /denmall

or 

put this into the index.php file of your first website.

header("HTTP/1.1 301 Moved Permanently");
header("Location: http://eviewtrading.com/denmall/denmall");
exit();
Link to comment
Share on other sites

×
×
  • Create New...