Code Monkey home page Code Monkey logo

Comments (8)

zanshin avatar zanshin commented on June 11, 2024

I've added code to my .htaccess file to redirect www.zanshin.net to zanshin.net, which does an end run around this issue, but it is still something that ought to be corrected. For the curious, here's the code I put in my .htaccess:

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_HOST} ^www.zanshin.net$
RewriteRule (.*) http://zanshin.net/$1 [R=Permanent]

from octopress.

imathis avatar imathis commented on June 11, 2024

As best I can tell this is an issue with cross site scripting. I always set up my hosting to redirect the www subdomain and I think that's a generally recommended practice. Thanks @zan5hin for posting an easy way to do it.

from octopress.

bensternthal avatar bensternthal commented on June 11, 2024

Hmm, i'll try to poke around on this early next week both because I would like to understand the cause and because this should work. Redirecting the subdomain is not really an accepted best practice and should not be a requirement of using octopress.

If/when I figure this out... i'll post the solution :-)

from octopress.

imathis avatar imathis commented on June 11, 2024

I agree this shouldn't be a barrier for using Octopress. Unfortunately it seems like the solution lies in tools I didn't create and am unable to fix. If you can find a solution that doesn't require redirection I'd be very pleased to know how to implement it.

from octopress.

bensternthal avatar bensternthal commented on June 11, 2024

Just an FYI here is the bug thread on this over at modernizer. Modernizr/Modernizr#348

For a temp fix, I removed respond.js from my modernizer build and included separately. If this was an older browser I would probably ignore on my personal site but ie8 is still very popular.

Anyhew hope this helps.

from octopress.

imathis avatar imathis commented on June 11, 2024

Very good thanks so much for figuring this out. I wish I could hotlink to the build so updates would be automatic. I'll have to figure out what to do with Octopress.

from octopress.

NJAldwin avatar NJAldwin commented on June 11, 2024

re: hotlinking the build, have you tried using git submodules? http://help.github.com/submodules/

from octopress.

allegromanontroppo avatar allegromanontroppo commented on June 11, 2024

I've managed to solve the issue by replacing the Regex in Modernizr as per ryanseddon's comment on their thread.

Looks like modernizr is using a slightly different regexp compared to the current one in respond.

Modernizr has: !/^([a-zA-Z]+?:(//)?(www.)?)/

Respond has: !/^([a-zA-Z]+?:(//)?)/

Not perfect but it does the job.

from octopress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.