Results 1 to 10 of 2445

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by mikebr View Post
    ... I'm trying to determine what code should be placed in the .httaccess file to prevent certain URI's containing certain character strings from rewriting. ...

    # Don't rewrite URI if contains "x45poty" string 

    RewriteCond %{REQUEST_URI} !^/*x45poty* [NC]
    ...
    If you want to exclude all URIs containing the string "x45poty" (case insensitive) use the following:
    Code:
    # Don't rewrite URI if contains "x45poty" string 

    RewriteCond %{REQUEST_URI} !x45poty [NC]
    Quote Originally Posted by PetleyJ View Post
    Hi Guys, installed the plugin, added the code for .htaccess - I have an issue. If i have yourdomain.co.uk/blog ect and it's now showing the page not found. ... I couldn't upload the file due to invalid extension.
    When checking I was able to get into the blog without any issues... Take it you were able to get things sorted? Without seeing the problematic behavior one can only guess what the problem was. Could you post what was needed for future readers of this thread?

    Other thoughts:
    When uploading I highly recommend using FTPS or SFTP with WinSCP, Filezilla, or similar. They do not care what the file extension is and using a secure version of FTP with an ecommerce site is always a good idea.

    As for the matching to exclude the blog... Do you really have images for your blog at /wp-images instead of under /blog/wp-content? The less excludes, the simpler it will be to debug and the faster the request can be processed. If you want to exclude both /blog and /blog/someurl (some incoming links might incorrectly specify /blog instead of /blog/) you can change the RewriteCond for the blog to match the EOL or /.
    Code:
    # Don't rewrite blog directory
    RewriteCond %{REQUEST_URI} !^/blog($|/) [NC]
    I also noticed you are running multiple domains using nested Document Roots (public_html). This is not best practice and can lead to some negative situations. You may want to look into (or have your hosting provider) remove the nested Document Roots and provide separate physical paths for each domain. See this post for an example.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  2. #2
    Join Date
    Jul 2009
    Location
    Norwich, UK
    Posts
    120
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by lhungil View Post
    If you want to exclude all URIs containing the string "x45poty" (case insensitive) use the following:
    Code:
    # Don't rewrite URI if contains "x45poty" string 

    RewriteCond %{REQUEST_URI} !x45poty [NC]

    When checking I was able to get into the blog without any issues... Take it you were able to get things sorted? Without seeing the problematic behavior one can only guess what the problem was. Could you post what was needed for future readers of this thread?

    Other thoughts:
    When uploading I highly recommend using FTPS or SFTP with WinSCP, Filezilla, or similar. They do not care what the file extension is and using a secure version of FTP with an ecommerce site is always a good idea.

    As for the matching to exclude the blog... Do you really have images for your blog at /wp-images instead of under /blog/wp-content? The less excludes, the simpler it will be to debug and the faster the request can be processed. If you want to exclude both /blog and /blog/someurl (some incoming links might incorrectly specify /blog instead of /blog/) you can change the RewriteCond for the blog to match the EOL or /.
    Code:
    # Don't rewrite blog directory
    RewriteCond %{REQUEST_URI} !^/blog($|/) [NC]
    I also noticed you are running multiple domains using nested Document Roots (public_html). This is not best practice and can lead to some negative situations. You may want to look into (or have your hosting provider) remove the nested Document Roots and provide separate physical paths for each domain. See this post for an example.
    Hi.
    Thanks for the advice.

    The blog seems to run on and off, it's more the /competitions and /community that isn't working.

    wp-images is for a different program altogether, not for WordPress.

    James
    FMUK Consulting - Web Design & Development | Graphics | Marketing | Apps - http://www.FMUKConsulting.co.uk

  3. #3
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by PetleyJ View Post
    The blog seems to run on and off, it's more the /competitions and /community that isn't working.
    Apply the same fix to the RewriteCond I posted for the blog. I'd actually apply the change to any external directory you want to exclude to handle the case where an incoming link (or hand typed URI) is missing the trailing slash.
    Code:
    # Don't rewrite blog directory
    RewriteCond %{REQUEST_URI} !^/blog($|/) [NC]
    # Don't rewrite community directory
    RewriteCond %{REQUEST_URI} !^/community($|/) [NC]
    # Don't rewrite competitions directory
    RewriteCond %{REQUEST_URI} !^/competitions($|/) [NC]
    While there are other methods to simplify the RewriteConds (such as excluding all real folders and files from rewriting), I have an inkling of why the original author of this mod may have decided to not go this route.

    If you did not obscure your admin folder when you posted your .htaccess file, I would recommend changing the admin folder asap :)
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  4. #4
    Join Date
    Sep 2011
    Posts
    135
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    How do I keep http://mydomain.com in the address?
    All my products show /category as the start of the URL

    The problem Im having is I want to export the products as a csv for a product feed for nextag, nextag doesnt like my urls without the domain in front of course. I dont want to manually edit the excel file as I have a lot of products and some do and some dont have this issue depending on wether Ive edited them of course.


    Ive tried a search but couldnt find the answer to this although Im sure it has come up before...

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by Chargin View Post
    How do I keep http://mydomain.com in the address?
    All my products show /category as the start of the URL

    The problem Im having is I want to export the products as a csv for a product feed for nextag, nextag doesnt like my urls without the domain in front of course. I dont want to manually edit the excel file as I have a lot of products and some do and some dont have this issue depending on wether Ive edited them of course.


    Ive tried a search but couldnt find the answer to this although Im sure it has come up before...
    This thread is not the right thread to address your question.. This add-on does not export URLs from your store..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #6
    Join Date
    Sep 2011
    Posts
    135
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by DivaVocals View Post
    This thread is not the right thread to address your question.. This add-on does not export URLs from your store..
    No I have a mod that does that, Easy populate.
    But the URLs it now exports for any products that have a Ceon URI all start with /category.
    Surely theres a setting or something to sort this out, like the way the htaccess file is setup?

  7. #7
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Ceon URI Mapping v4.x

    Quote Originally Posted by Chargin View Post
    No I have a mod that does that, Easy populate.
    But the URLs it now exports for any products that have a Ceon URI all start with /category.
    Surely theres a setting or something to sort this out, like the way the htaccess file is setup?
    You need to ask the folks on the EZ Populate thread.. (and BTW, if Conor was around he'd re-direct you there as well..)
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

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

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