Giter Site home page Giter Site logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
One of the things I did was change my .htaccess to read the following:

RewriteRule ^([A-Za-z0-9-]+/)?([A-Za-z0-9-]+)/?$ index.php?id=$2 [L,QSA]

This will allow only a maximum number of 2 slugs. Doesn’t fix it in any other 
way
though, as GetSimple will still need a check whether the first one is the 
parent slug
or not. Another thing is that you will no longer be sure that wrong URLs are 
send to
your 404, this because URLs with more than 2 slugs will not be rewritten at all 
and
will be fed the server’s 404.

Do you think we actually need a check on the URL? Having a canonical URL 
specified on
the page would fix the problem as far as SEO is concerned, right?

Original comment by [email protected] on 20 Feb 2010 at 9:37

from get-simple-cms.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
Can we rely on canonical though? Duplicate content is something people will 
always be 
concerned with. But that said - i am not sure this problem is worth the amt of 
work it 
will be to check each page request that comes in for a correct parent.

Original comment by ccagle8 on 21 Feb 2010 at 12:36

from get-simple-cms.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
This should not be much work. You just would have to add some check in 
index.php, 
something like this:

if($_SERVER['REQUEST_URI'] != $data_index->parent . '/' . $data_index->url)
header('Location: ' . $data_index->parent . '/' . $data_index->url);

Of course you should do add something else for sites that are not hosted in the 
root 
of the domain, and the extra query string parameters.

Original comment by [email protected] on 29 Mar 2010 at 4:15

from get-simple-cms.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
This issue was closed by revision r136.

Original comment by ccagle8 on 17 Apr 2010 at 2:44

  • Changed state: Fixed

from get-simple-cms.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
Thanks Melado - It's taken me a while, but a version of what you gave me worked 
perfectly. Thanks!

Original comment by ccagle8 on 17 Apr 2010 at 2:45

from get-simple-cms.

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.