X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Redirect "creat user creation" to static page. (https://forum.x-cart.com/showthread.php?t=77627)

jungha 02-09-2020 06:46 AM

Redirect "creat user creation" to static page.
 
V 5.4.0.9 (X-Cart Hosting)

I would like to redirect "creat new accout" in sign in pop up to mystore.com/membership page (static page, introducing membership). I don't want to allow user to register on the store by him/her self.

X-Cart tech recommend to review https://kb.x-cart.com/migration/migration-from-xcart4/step4/redirects.html but I could not solve my problem.

I added below in .htaccess but nothing was changed. I don’t know what’s wrong, I have almost zero knowledge about Apache and PHP.

RewriteRule ^cart.php?target=profile membership [L]


If anyone has any idea to solve my problem, please share your idea.


Thanks in advance
Jungha

Ed B. 02-12-2020 11:42 AM

Re: Redirect "creat user creation" to static page.
 
Quote:

Originally Posted by jungha
V 5.4.0.9 (X-Cart Hosting)

I added below in .htaccess but nothing was changed. I don’t know what’s wrong, I have almost zero knowledge about Apache and PHP.

RewriteRule ^cart.php?target=profile membership [L]







There are several reasons why this doesn't work.
  • .htaccess file isn't read for one reason or another (typically because of the server configuration that doesn't allow override by .htaccess). This is unlikely because it would conflict other x-cart functionality
  • the rewrite module is not installed. This is also unlikely since it is part of standard modules
  • the rewrite module is not loaded. In this case, you need to add
    Code:

    LoadModule rewrite_module modules/mod_rewrite.so
    in the main apache configuration file.
  • the rewrite engine is not enabled. (this can happen together with the previous one). You will need to add
    Code:


    RewriteEngine on

    either in your main appach configuration file or .htaccess file.

    Hope this helps.

siddharth.puri@wheelandba 02-13-2020 05:58 PM

Re: Redirect "creat user creation" to static page.
 
The reason why .htaccess file isn't working because your server maybe using NGINX as web server application, but not Apache.

I do not think Xcart will provide you access to NGINX config due to security reasons.

Contact them to redirect this for you.


All times are GMT -8. The time now is 01:12 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.