Page 130 of 291 FirstFirst ... 3080120128129130131132140180230 ... LastLast
Results 1,291 to 1,300 of 2907
  1. #1291
    Join Date
    Dec 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping (SEO)

    Quote Originally Posted by g1smd View Post
    In ALL of the RewriteCond patterns, remove the unwanted trailing .* part of the pattern where you are not capturing it in a backreference.

    Change the reference to 'admin' to reflect what your admin folder is actually called.

    Beware of paths that are localised when used with RewriteRule when the .htaccess is in a folder.
    Hmm okay I did this and it's still redirecting Admin to the home page....weird...

  2. #1292
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: Ceon URI Mapping (SEO)

    Hi,

    Quote Originally Posted by g1smd View Post
    In ALL of the RewriteCond patterns above, remove the unwanted trailing .* part of the pattern where you are not capturing it in a backreference.

    That is, !^/editors.* should be !^/editors here. Same for all of the other patterns.
    Sorry but that information is wrong. Matching !^/editors.* or !^/editors is effectively the same as far these rules are concerned.

    .* simply means "match any or no further characters".

    So it's fine to have it.

    You can read more about this if you search for "regular expressions" on the net.

    All the best..

    Conor
    ceon

  3. #1293
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: Ceon URI Mapping (SEO)

    Hi,

    Quote Originally Posted by Berserker View Post
    I was hoping it would work but didnt...

    This is what i have in the htaccess of the main domain

    RewriteCond %{REQUEST_URI} !^/addondomain.com.* [NC]
    As far as I can see, this part will never match.

    The %{REQUEST_URI} variable doesn't include the host name.

    It would only match if you were matching against %{HTTP_HOST}

    You are hijacking this thread somewhat to sort out your own hosting problems.

    Rather than you posting lots of times I'd rather have a quick go and trying out an option or two to sort this out.

    Please send me FTP details for your site and I'll try out a few ideas I have to get this working for you.

    I may or may not be able to do that today depending on whether or not I can get internet access later... I'll be off for the Easter Holidays shortly.

    All the best...

    Conor
    ceon

  4. #1294
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: Ceon URI Mapping (SEO)

    Hi,

    Thanks for the info!

    Quote Originally Posted by kiddo View Post
    Some hosts allow you to point additional domains at your account and host them as if they were stand-alone domains. For the most part, it works pretty well. Each add-on lives in a directory under the main web root.

    I know BH, HM and CH offer this. Seems to be pretty common these days.
    It sounds like a stupid way to set up a website. How hard is it to set up a VirtualHost directive so each additional domain is its own website?!

    Some companies just don't have a clue unfortunately!

    All the best..

    Conor
    ceon

  5. #1295
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: Ceon URI Mapping (SEO)

    Quote Originally Posted by conor View Post
    Hi,

    Thanks for the info!



    It sounds like a stupid way to set up a website. How hard is it to set up a VirtualHost directive so each additional domain is its own website?!

    Some companies just don't have a clue unfortunately!

    All the best..

    Conor
    ceon
    I'm pretty sure thats the way it does work. When you enter the info for the add-on domain, the software creates the proper virthost directives.

    Some of the certified hosts offer this like coughcamelotcough. Maybe one of those guys could jump in and explain how its really done. I'm guessing the web root directive in the container just points to a sub-dir of the main account.

  6. #1296
    Join Date
    Mar 2010
    Location
    UK
    Posts
    445
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping (SEO)

    Code:
    .* simply means "match any or no further characters".
    
    So it's fine to have it.
    This is Server Configuration Code. The entire .htaccess file is parsed at least once for every URL request arriving at the server.

    That being so, the file should use the most efficient code to get the job done. In this case, trailing .* characters on multiple patterns waste CPU cycles that you might later need elsewhere in serving the pages.

    General rule of thumb is to only include such patterns when you need to capture the information in a backreference for later use.

    Additionally, every RewriteRule should have the [L] flag to end Mod_Rewrite processing when that rule has matched the current request.

    I've seen too many site owners forced into early server upgrades, when in actual fact inefficient code had wasted vast amounts of processing power.

    This code *is* trivial but because it is core to server operation, getting the best possible efficiency is important.

  7. #1297

    Default Re: Ceon URI Mapping (SEO)

    Hi, I'm not sure if this is the correct place to ask this but I think it may be an issue with this mod.

    I've been testing my site's performance using this tool:
    http://www.websiteoptimization.com/services/analyze/

    When I used the tool to analyse this page:
    http://www.snowrepublic.co.uk/FilesS...mondFile100X25

    It is coming back with images not found even though the images are being displayed when I look at the page with my browser.

    The path it is saying the images exist on are http://www.snowrepublic.co.uk/FilesStones/images/
    but the real path should be http://www.snowrepublic.co.uk/images/

    Is there a problem with this mod?
    If so, am I seeing my images because my browser has cached them before I installed this mod?

    Any help would be grately appreciated.
    It may be a problem with the analysis tool; I've asked at weboptimization.com to see what they think.
    I'll post their response when I get it.

  8. #1298
    Join Date
    May 2009
    Location
    Italy
    Posts
    19
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping (SEO)

    Quote Originally Posted by conor View Post
    Hi,

    Thanks for the info!



    It sounds like a stupid way to set up a website. How hard is it to set up a VirtualHost directive so each additional domain is its own website?!

    Some companies just don't have a clue unfortunately!

    All the best..

    Conor
    ceon

    Guys,

    I've just glanced a bit at the discussion here, so don't know if I'm capturing everything, but...

    I'm using an add-on domain from my hosting provider (Midphase) for my website (www.edizioninautilus.it) and it is able to successfully handle Conor's great URI mapping module.

    The add-on domain is all hosted in a sub-directory under the main domain files. I've simply followed the .htaccess rules in Conor's docs and placed that .htaccess file in the root directory of the subdirectory. All seems well.

    If you're interested, here's a snapshot of my .htaccess:

    RewriteEngine on

    Options All -Indexes

    RewriteCond %{HTTP_HOST} ^nautilustorino.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.nautilustorino.com$
    RewriteRule ^/?$ "http\:\/\/www\.edizioninautilus\.it" [R=301,L]

    RewriteCond %{HTTP_HOST} ^edizioninautilus.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.edizioninautilus.com$
    RewriteRule ^/?$ "http\:\/\/www\.edizioninautilus\.it" [R=301,L]

    RewriteCond %{HTTP_HOST} ^nautilustorino.it$ [OR]
    RewriteCond %{HTTP_HOST} ^www.nautilustorino.it$
    RewriteRule ^/?$ "http\:\/\/www\.edizioninautilus\.it" [R=301,L]

    redirect 301 "/Libri/5000 anni fa - Chiomonte.html" http://www.edizioninautilus.it/5000-anni-fa-chiomonte
    redirect 301 "/Libri/Archeologia del Ferro.html" http://www.edizioninautilus.it/archeologia-del-ferro
    .
    .
    .

    ErrorDocument 404 /index.php?main_page=page_not_found

    # Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
    RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
    # Don't rewrite admin directory
    RewriteCond %{REQUEST_URI} !^/zzzzzzz.* [NC]
    # Don't rewrite editors directory
    RewriteCond %{REQUEST_URI} !^/editors.* [NC]
    # Don't rewrite payment pages/callback handlers
    # (Won't be rewritten by rules above but included here in case rewriting of URIs ending in .php is added)
    RewriteCond %{REQUEST_URI} !^/ipn_main_handler.php.* [NC]
    RewriteCond %{REQUEST_URI} !^/iridium_3d_secure_iframe.php.* [NC]
    RewriteCond %{REQUEST_URI} !^/localities_remote_loader.php.* [NC]
    RewriteCond %{REQUEST_URI} !^/nochex_apc_handler.php.* [NC]
    RewriteCond %{REQUEST_URI} !^/protx_direct_3d_secure_iframe.php.* [NC]
    RewriteCond %{REQUEST_URI} !^/realex_remote_3d_secure_iframe.php.* [NC]
    # Don't rewrite cPanel directories
    RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
    RewriteCond %{REQUEST_URI} !/frontend.* [NC]
    # Handle all other URIs using Zen Cart (index.php)
    RewriteRule (.*) index.php?%{QUERY_STRING} [L]



    I left out a bunch of 301 redirects where the . . . s are in the cut and paste job above because there are a ton of them and they are ultimately just a repeat of the first two that I included.

    Hope that helps some.

    Jeremy

  9. #1299
    Join Date
    Mar 2010
    Location
    UK
    Posts
    445
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping (SEO)

    Here's some hints to make the code much more efficient or correct common errors:



    Quote Originally Posted by edizioninautilus View Post
    RewriteCond %{HTTP_HOST} ^nautilustorino.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.nautilustorino.com$
    A local OR will parse faster when used in .htaccess. Do also remember to escape periods in patterns:
    Code:
    RewriteCond %{HTTP_HOST} ^(www\.)?nautilustorino\.com$


    Quote Originally Posted by edizioninautilus View Post
    RewriteRule ^/?$ "http\:\/\/www\.edizioninautilus\.it" [R=301,L]
    Escape special characters when used in patterns, but NOT in the target URL or filepath. End the domain name with a trailing slash:
    Code:
    RewriteRule ^/?$ "http://www.edizioninautilus.it/" [R=301,L]


    Quote Originally Posted by edizioninautilus View Post
    redirect 301 "/Libri/5000 anni fa - Chiomonte.html" http://www.edizioninautilus.it/5000-anni-fa-chiomonte
    You cannot guarantee module execution order on the server so never mix Redirect and RedirectMatch directives in the same file where RewriteRule is in use. Use RewriteRule for ALL of your redirects and rewrites:
    Code:
    RewriteRule  "Libri/5000 anni fa - Chiomonte.html"  http://www.edizioninautilus.it/5000-anni-fa-chiomonte [R=301,L]
    If you mix directives, and you have rewrites parsed before redirects, you'll end up exposing server internal filepaths as URLs.



    Quote Originally Posted by edizioninautilus View Post
    !\.[a-zA-Z]{2,4}$
    Using the NC flag will parse 50% faster:
    Code:
     !\.[A-Z]{2,4}$ [NC]


    Quote Originally Posted by edizioninautilus View Post
    RewriteCond %{REQUEST_URI} !^/editors.* [NC]
    Patterns are essentially prefix matches. In this case the trailing .* pattern is totally redundant. Remove it:
    Code:
    RewriteCond %{REQUEST_URI} !^/editors [NC]


    DO ensure that your redirects are listed from most-specific to most general, with your general non-www to www redirect listed last. After the redirects, list all the rewrites, again from most-specific to most general. Ensure every RewriteRule is terminated with the [L] flag. Redirects will have [R=301,L] instead.
    Last edited by g1smd; 7 Apr 2010 at 10:58 AM.

  10. #1300
    Join Date
    Mar 2010
    Location
    UK
    Posts
    445
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping (SEO)

    Here's some hints to make the code much more efficient or correct common errors:



    Quote Originally Posted by edizioninautilus View Post
    RewriteCond %{HTTP_HOST} ^nautilustorino.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.nautilustorino.com$
    A local OR will parse faster when used in .htaccess. Do also remember to escape periods in patterns:
    Code:
    RewriteCond %{HTTP_HOST} ^(www\.)?nautilustorino\.com$


    Quote Originally Posted by edizioninautilus View Post
    RewriteRule ^/?$ "http\:\/\/www\.edizioninautilus\.it" [R=301,L]
    Escape special characters when used in patterns, but NOT in the target URL or filepath. Target URL should not be in quotes. End the domain name with a trailing slash:
    Code:
    RewriteRule ^/?$ http://www.edizioninautilus.it/ [R=301,L]


    Quote Originally Posted by edizioninautilus View Post
    redirect 301 "/Libri/5000 anni fa - Chiomonte.html" http://www.edizioninautilus.it/5000-anni-fa-chiomonte
    You cannot guarantee module execution order on the server so never mix Redirect and RedirectMatch directives in the same file where RewriteRule is in use. Use RewriteRule for ALL of your redirects and rewrites:
    Code:
    RewriteRule  "Libri/5000 anni fa - Chiomonte.html" 
    http://www.edizioninautilus.it/5000-anni-fa-chiomonte [R=301,L]
    If you mix directives, and you have rewrites parsed before redirects, you'll end up exposing server internal filepaths as URLs.



    Quote Originally Posted by edizioninautilus View Post
    !\.[a-zA-Z]{2,4}$
    Using the NC flag will parse 50% faster:
    Code:
     !\.[A-Z]{2,4}$ [NC]


    Quote Originally Posted by edizioninautilus View Post
    RewriteCond %{REQUEST_URI} !^/editors.* [NC]
    Patterns are essentially prefix matches. In this case the trailing .* pattern is totally redundant. Remove it:
    Code:
    RewriteCond %{REQUEST_URI} !^/editors [NC]


    Apply all of the above fixes to every line of code in your .htaccess file. DO ensure that your redirects are listed from most-specific to most general, with your general non-www to www redirect listed last. After the redirects, list all the rewrites, again from most-specific to most general. Ensure every RewriteRule is terminated with the [L] flag. Redirects will have [R=301,L] instead.
    Last edited by g1smd; 7 Apr 2010 at 11:05 AM. Reason: Reposted to correct one typo found after timeout of previous post.

 

 

Similar Threads

  1. Simple SEO URL, Ultimate SEO URLs, Ceon URI Mapping SEO
    By pizza392 in forum All Other Contributions/Addons
    Replies: 13
    Last Post: 21 Jan 2015, 10:49 AM
  2. Ceon uri mapping vs Simple SEO
    By crixus in forum General Questions
    Replies: 0
    Last Post: 28 Feb 2014, 04:41 AM
  3. v151 Ceon URI Mapping (SEO) Issues?
    By yisou in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 30 Jul 2013, 12:06 PM
  4. v151 Ceon URI Mapping (SEO) installation problem.
    By jmac2020 in forum General Questions
    Replies: 1
    Last Post: 23 Oct 2012, 01:06 PM
  5. Ceon URI Mapping (SEO) How to install?
    By jackfitz in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 28 Apr 2010, 12:09 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