Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Two URLs created for single Static Content Item
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.

TOPIC: Two URLs created for single Static Content Item

Re:Two URLs created for single Static Content Item 17 years ago #2012

  • psyko
Hi,

please give me the entire URL and the URL you want to have, because I mean that I'm not quite right with what you want...

All the lines about correction of url of joomsef output url's in the htaccess are from me on all forums.

I ve started to post about htaccess while some stealers expect to sell a f""""ing files for Sef url (which never ever worked...)

so I think there is no problem to match your requirement, I just need a concrete example.


Example, using joomsef, you have this:

www.your-site.com/section/category/article.html

this is your strip, no?

www.your-site.com/section/category/article-2.html

The 2 lines I have given are OK...

Otherwise let me know what is the URL target and what you want to redirect.<br><br>Post edited by: psyko, at: 2007/04/30 22:29

Re:Two URLs created for single Static Content Item 17 years ago #2013

Yes Pascal I remember now that I saw your shop in the signature, from a french forum that I used to Google translate to figure out what you guys have been discussing there :) Eventually I found this rule and applied it to my site ,and it work for content items, for example:

www.b r a c info.com/fr/povlja/appartements-povlja.htm

but for all the other, non content item urls the problem remained, for example:

www.b r a c info.com/fr/povlja/ (a valid category url)
www.b r a c info.com/fr/povlja/2.htm (duplicate url created by artio)
www.b r a c info.com/fr/povlja/3.htm (duplicate url created by artio)

those 2,3,etc.htm's were not stripped out for categories.
Hope this makes it a little clearer.
Kind regards,
Zeljko

Post edited by: dalmatino, at: 2007/04/30 22:39

So obviously I want www.b r a c info.com/fr/povlja/2.htm to be redirected to www.b r a c info.com/fr/povlja/

Post edited by: dalmatino, at: 2007/04/30 22:40

Post edited by: dalmatino, at: 2007/04/30 22:42<br><br>Post edited by: dalmatino, at: 2007/04/30 22:43

Re:Two URLs created for single Static Content Item 17 years ago #2014

  • psyko
Hi, this is the second line rule...

RewriteRule ^(.*)/[0-9]+.html$ YOUR-SITE/$1.html [L,R=301]


After the (.*) it's a slash / and wil solve your /n.htm and redirect it too the target via R301.

Apply this line, can not see where it's the problem

Let me know if solved.

Re:Two URLs created for single Static Content Item 17 years ago #2015

ok Pascal, it is possible that i applied only the first line.
Just one more question, does this rewrite rule have any negative impact on the speed of the site?
Kind regards,
Zeljko

Re:Two URLs created for single Static Content Item 17 years ago #2016

  • psyko
try this it must work

this is the second line rule to strip duplicate...

RewriteRule ^(.*)[0-9]+$ YOUR-SITE/$1.html [L,R=301]

IT will look if any url ends with /any-number.html and rewrite it with just /

Concerning speed, it will affect a little bit but not enough to decrease the site speed...

Let me know if it works

Re:Two URLs created for single Static Content Item 17 years ago #2017

  • psyko
OK I've found it

Replace the second line with this one, IT works GREAT !!!

RewriteRule ^(.*)[0-9]+.html$ localhost/$1 [L,R=301]

See you soon, i'll contact you by email directly on your mail adress of your site

Post edited by: psyko, at: 2007/04/30 23:16<br><br>Post edited by: psyko, at: 2007/04/30 23:17
User Login Empty