Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Redirect "creat user creation" to static page.

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-09-2020, 06:46 AM
 
jungha jungha is offline
    
Join Date: Feb 2020
Posts: 1
 

Default 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
__________________
5.4.0.9 [linux, X-Cart Hosting]
Reply With Quote
  #2  
Old 02-12-2020, 11:42 AM
 
Ed B. Ed B. is offline
 

X-Adept
  
Join Date: Apr 2016
Posts: 446
 

Default 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.
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote
  #3  
Old 02-13-2020, 05:58 PM
 
siddharth.puri@wheelandba siddharth.puri@wheelandba is offline
 

Advanced Member
  
Join Date: Nov 2019
Posts: 66
 

Default 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.
__________________
Version 5.3.6.6
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:26 AM.

   

 
X-Cart forums © 2001-2020