Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4964 Visualizzazioni

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


Avatar
Abbandona
Risposta migliore

Try 

RewriteRule ^/shop /shop-category

RewriteRule ^shop/(\w+)/?$ /shop-category
Avatar
Abbandona
Autore

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.

Post correlati Risposte Visualizzazioni Attività
0
set 23
92
2
ago 19
12213
1
giu 19
5903
1
giu 18
8252
2
lug 24
2695