Page 223 of 245 FirstFirst ... 123173213221222223224225233 ... LastLast
Results 2,221 to 2,230 of 2445
  1. #2221
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,754
    Plugin Contributions
    30

    Default Re: Ceon URI Mapping v4.x

    Any pointers for running the Ceon URI Mapping on a localhost installation?
    Yes. As a virtual host. As recommended to me by Conor RIP. I have been using this setup for years.

    Set up the site to use an url such as
    www.mysite.local

    NOT 127.0.0.1/whatever nor localhost/whatever.

    The use of those two local domains will cause you issues with sll certificates down the road as browsers tighten up access to those addresses.

    Here are the steps required.
    Make sure a step works before proceeding further or it's a world of pain.

    1) This requires the entry in the hosts file:
    127.0.0.1 www.mysite.local
    Check this works with a static site.

    2) Add the corresponding code in the apache config \apache\conf\extra\httpd-vhosts.conf

    This is mine with names changed to protect the innocent.

    <VirtualHost *:80>
    ServerName www.mysite.local
    ServerAlias www.mysite.local
    DocumentRoot "D:/Documents/PATH TO SITE/public_html"
    ErrorLog "logs/vhosts-error.log"
    <Directory "D:/Documents/PATH TO SITE/public_html">
    AllowOverride All
    Require all granted
    </Directory>
    </VirtualHost>

    <VirtualHost *:443>
    ServerName www.mysite.local
    ServerAlias www.mysite.local
    SSLEngine on
    SSLCertificateFile conf/ssl.crt/server.crt
    SSLCertificateKeyFile conf/ssl.key/server.key
    DocumentRoot "D:/Documents/PATH TO SITE/public_html"
    ErrorLog "logs/vhosts-error.log"
    <Directory "D:/Documents/PATH TO SITE/public_html">
    AllowOverride All
    Require all granted
    </Directory>
    </VirtualHost>

    #the paths to the certificate may not be as your server...Google is your friend.

    Check this works for both http and https on a static site.

    3) Local Shop
    Change the configs to suit. Check it all works without URI Mapping enabled.

    I remember a couple of occasions when it just would not work. Eventually I did a new install using the virtual host url https://www.mysite.local just to get examples of working configs.

    4) Set up the URI mapping as usual.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  2. #2222
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,345
    Plugin Contributions
    94

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by mc12345678 View Post
    Assuming that before clicking on a link to a product that looking at the link generated/to be followed? Or just seeing that after clicking the desired result is not obtained?
    Yep, the link visually looked correct, e.g. localhost/store_name/the_page_link. Here's a dump of the $_SERVER variables on entry:
    Code:
      'SERVER_NAME' => 'localhost',
      'SERVER_ADDR' => '::1',
      'SERVER_PORT' => '80',
      'REMOTE_ADDR' => '::1',
      'DOCUMENT_ROOT' => 'C:/xampp/htdocs',
      'REQUEST_SCHEME' => 'http',
      'CONTEXT_PREFIX' => '',
      'CONTEXT_DOCUMENT_ROOT' => 'C:/xampp/htdocs',
      'SERVER_ADMIN' => 'postmaster@localhost',
      'SCRIPT_FILENAME' => 'C:/xampp/htdocs/store_name/index.php',
      'REMOTE_PORT' => '56161',
      'REDIRECT_URL' => '/store_name/the-page-link',
      'GATEWAY_INTERFACE' => 'CGI/1.1',
      'SERVER_PROTOCOL' => 'HTTP/1.1',
      'REQUEST_METHOD' => 'GET',
      'QUERY_STRING' => '',
      'REQUEST_URI' => '/store_name/the_page_link',
      'SCRIPT_NAME' => '/store_name/index.php',
      'PHP_SELF' => '/store_name/index.php',
    What's happening is that the_page_link, when clicked always returns to the main-page (i.e. without parameters, so no category or product listings).

  3. #2223
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,345
    Plugin Contributions
    94

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by torvista View Post
    Yes. As a virtual host. As recommended to me by Conor RIP. I have been using this setup for years.

    Set up the site to use an url such as
    www.mysite.local

    NOT 127.0.0.1/whatever nor localhost/whatever.

    The use of those two local domains will cause you issues with sll certificates down the road as browsers tighten up access to those addresses.

    Here are the steps required.
    Make sure a step works before proceeding further or it's a world of pain.

    1) This requires the entry in the hosts file:
    127.0.0.1 www.mysite.local
    Check this works with a static site.

    2) Add the corresponding code in the apache config \apache\conf\extra\httpd-vhosts.conf

    This is mine with names changed to protect the innocent.

    <VirtualHost *:80>
    ServerName www.mysite.local
    ServerAlias www.mysite.local
    DocumentRoot "D:/Documents/PATH TO SITE/public_html"
    ErrorLog "logs/vhosts-error.log"
    <Directory "D:/Documents/PATH TO SITE/public_html">
    AllowOverride All
    Require all granted
    </Directory>
    </VirtualHost>

    <VirtualHost *:443>
    ServerName www.mysite.local
    ServerAlias www.mysite.local
    SSLEngine on
    SSLCertificateFile conf/ssl.crt/server.crt
    SSLCertificateKeyFile conf/ssl.key/server.key
    DocumentRoot "D:/Documents/PATH TO SITE/public_html"
    ErrorLog "logs/vhosts-error.log"
    <Directory "D:/Documents/PATH TO SITE/public_html">
    AllowOverride All
    Require all granted
    </Directory>
    </VirtualHost>

    #the paths to the certificate may not be as your server...Google is your friend.

    Check this works for both http and https on a static site.

    3) Local Shop
    Change the configs to suit. Check it all works without URI Mapping enabled.

    I remember a couple of occasions when it just would not work. Eventually I did a new install using the virtual host url https://www.mysite.local just to get examples of working configs.

    4) Set up the URI mapping as usual.
    I'll give that a try, Steve. My hesitancy is that I've got a bunch of test sites locally and don't want to get them (and myself) confused.

  4. #2224
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    I usually create a virtual host for every test / backup site I'm working on.
    I don't need no fancy Apache configuration, so it just a matter of copy / paste and add those entries in the hosts file.
    I've tried recently to use the vagrant way, using the puphpet config, because it makes more sense when it comes to work in different places and machines, but, all I did was waste a couple of days, and failed miserably! Something related with vbguest plugin and the SMB share. But, on a Mac or Linux perhaps it's easier, and brings a lot of advantages.
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  5. #2225
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,345
    Plugin Contributions
    94

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by lat9 View Post
    I'll give that a try, Steve. My hesitancy is that I've got a bunch of test sites locally and don't want to get them (and myself) confused.
    Woo-hoo! Thanks a bunch, Steve.

  6. #2226
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,754
    Plugin Contributions
    30

    Default Re: Ceon URI Mapping v4.x

    Woo-hoo! Thanks a bunch, Steve.
    I take it that worked then?!

    A further plus of the virtual host approach is taking it to the next step of allowing outside access to your local dev Xampp install via a dynamic dns.
    Obviously it goes without saying about the security risk and the steps you need to take to mitigate this, and only do it when you need to and not all the time.

    But why do such a thing?
    Well for mobile testing so you don't have to root the phone to modify the hosts file, and you can also call anyone you like and ask them to check it out and you can fiddle with it there and then, locally.
    And also you can use a browser testing site to do mass tests.
    And if you are testing a connector with some other application that needs real internet access.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  7. #2227
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,345
    Plugin Contributions
    94

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by torvista View Post
    I take it that worked then?!

    A further plus of the virtual host approach is taking it to the next step of allowing outside access to your local dev Xampp install via a dynamic dns.
    Obviously it goes without saying about the security risk and the steps you need to take to mitigate this, and only do it when you need to and not all the time.

    But why do such a thing?
    Well for mobile testing so you don't have to root the phone to modify the hosts file, and you can also call anyone you like and ask them to check it out and you can fiddle with it there and then, locally.
    And also you can use a browser testing site to do mass tests.
    And if you are testing a connector with some other application that needs real internet access.
    You're correct, I'm up and running (sorry for being obtuse). The test site in question really needed to have the Ceon URI Mappings work, since the hosted site doesn't have space to contain a duplicate/test site.

  8. #2228
    Join Date
    Aug 2012
    Posts
    331
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Sorry if this was discussed already but the search did not return anything.

    What is the best solution for having multilingual url's appear as a subdirectory (for ex yourstore.com/fr/abc-item) in conjunctuion with CEON mod?

  9. #2229
    Join Date
    Aug 2012
    Posts
    331
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Bring Up My Post

    Quote Originally Posted by ShopVille View Post
    Sorry if this was discussed already but the search did not return anything.

    What is the best solution for having multilingual url's appear as a subdirectory (for ex yourstore.com/fr/abc-item) in conjunctuion with CEON mod?

  10. #2230
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,754
    Plugin Contributions
    30

    Default Re: Ceon URI Mapping v4.x

    What is the best solution for having multilingual url's appear as a subdirectory (for ex yourstore.com/fr/abc-item)
    I have no idea.
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

 

 

Similar Threads

  1. v139d Ceon uri mapping, how to generate uri mapping for bulk bulk-imported products?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 8 Jan 2013, 06:52 AM
  2. CEON URI Mapping
    By jmkent in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 22 Nov 2012, 04:28 PM
  3. Ceon URI Mapping (SEO)
    By conor in forum All Other Contributions/Addons
    Replies: 2906
    Last Post: 9 Sep 2011, 08:31 AM
  4. Ceon URI Mapping v4
    By conor in forum All Other Contributions/Addons
    Replies: 110
    Last Post: 14 Aug 2011, 02:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR