Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4957 Lượt xem

Hi all,

I want to redirect the /shop page to a custom page e.g. /shop-category

I'm using Apache with the following rule:

RewriteRule ^/shop https://www.mydomain.com/shop-category

but in this way I'm redirecting also /shop/everythingelse (like product page)

My need is to rewrite just the /shop page and not the sub path


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Try 

RewriteRule ^/shop /shop-category

RewriteRule ^shop/(\w+)/?$ /shop-category
Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks for the support, but the proposed solution is not working, the redirect

is not happening with the rules you wrote

Hello I have a domain www.simpleenergytech.com, when i login with portal user it will showing Home Shop Contct Us Sign In. not redirect to shop page, hence when i enter only domain without any user login showing website ok but after login with user showing Home Page.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 23
92
2
thg 8 19
12207
1
thg 6 19
5903
1
thg 6 18
8247
2
thg 7 24
2690