Home Forums WC Vendors Free Support Show vendor shop page at subdomain

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #62946
    David R
    Participant

    At first glance, this might not seem like it pertains to WCV, but I think it does.

    I’d like my vendors to be able to share shopname.mydomain.com to reach mydomain.com/shops/shopname, but I want a rewrite, not a redirect. Presently, I have the redirect using:

    RewriteCond %{HTTP_HOST} ^(.*)\.example\.com
    RewriteRule ^(.*)$ http://example.com/shops/%1/$1 [L,NC,QSA]

    All attempts at modifying that to convert it to a rewrite have failed. But I recently learned that the following code works for doing something similar with categories:

    RewriteCond %{HTTP_HOST} !^www\.
    RewriteCond %{HTTP_HOST} ^(.+)\.example\.com$
    RewriteRule ^$ /index.php?category_name=%1 [L]

    So, I imagine — and obviously you could tell me one way or another — that there might be a similar solution for WCV, where instead of ?category_name I can use ?wcv_shop_name. Is this possible?

    #63501
    WC Vendors Support
    Participant

    If you find a solution, I’d love to see it!

    One thing to remember, is that NO MATTER WHAT domain.com/vendorslug/user_login will always work. That’s right, it *always* works.

    So, have your subdomain be the user login. Now you have ben.domain.com (hey, i’m a vendor now!). My store is really on http://www.domain.com/vendors/ben/ of course. But to please my lazy ass, ben.domain.com could detect the host and then redirect me to http://www.domain.com/vendors/HOST or whatever.

    If you wiggle up the code for it, let us know! It’d be fun to have in the archives.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.