Comments (5)
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.
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.
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.
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.
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)
- update status redirects HOT 2
- Metad and keywords output filtering
- Language placeholders unchanged on "Save Settings" HOT 1
- Fix $kill notices on install.php HOT 5
- New menu Manager HOT 1
- Archive Backups not working on Windows hosts HOT 1
- pages missing files if parent file is missing
- deleting any file into the server HOT 4
- executing php functions from url HOT 3
- XSS on archive.php HOT 8
- CSRF Detected. HOT 1
- Site name encoding in backend and frontend HOT 1
- Template files aren't sorted in drop-down HOT 4
- Changing name of component doesn't focus the input HOT 1
- duplicate core functions HOT 1
- user-profile.php / GS 3.1.2
- !!!!! SVN MOVED TO GITHUB !!!!! HOT 1
- debug mode is always on if string in config file is just uncommented HOT 5
- i18n base translation
- adammm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from get-simple-cms.