41
bjuti
Re: URL changer
  • 2009/11/13 20:10

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


I have one problem, don't know is it a bug.

I use url rewrite with smartsection and all is ok. I have mydomain.com/mymodulename.catname.7/articlename

But, when i do sitemap creation, beside rewrited url, i also have:
mydomain.com/mymodulename/item.php?itemid=12.

In header of smartsection i have:

if (strpos(getenv('REQUEST_URI'), '/modules/smartsection/') === false) { ; } else {
    
$oldurl getenv('REQUEST_URI');
    
$newurl str_replace("modules/smartsection""modulename"$oldurl);
    
header("HTTP/1.1 301 Moved Permanently");
    
header("Location: $newurl");
}


What's wrong?

Google crawl it as different content and warning me about duplicate metatags and title tags.

I suppose that this is a case for all modules. For tag module I'm sure.. I have tag/45 and tag/tagname with same content.

Here is Rewrite Rules extracted from .htaccess

RewriteRule ^mymodulename/(.*) /modules/smartsection/$[QSA,L]
RewriteRule ^mymodulename.([a-z]+).([0-9.]+)/ modules/smartsection/seo.php?seoOp=$1&seoArg=$2


Tnx.

P.S. Also, Defacer module don't work with rewrited urls. I'm using XOOPS 2.3.3.

42
bjuti
Re: URL changer
  • 2009/11/15 22:15

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Burp! Oh, I mean BUMP!

43
bjuti
Re: URL changer
  • 2009/11/23 21:33

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Anyone?

44
Mamba
Re: URL changer
  • 2009/11/23 21:59

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I cannot help with this, but you might test Publisher from Trabis, on XOOPS 2.4.1 and Defacer, and see how it works.

It seems like Publisher is bringing some very good new features.

45
bjuti
Re: URL changer
  • 2009/11/23 22:05

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Yes I could, but there are few problems :)

1. My Site is very in very prodcutive stage for two more months (it's a event page, so it must work till the event)
2. Trabis said to me that The Publisher is slow comparing to SmartSection.
3. The Publisher is in alpha stage. I've tried it and I like it! but.. I must be sure not to lose any of rewritten urls.
4. The no 1. is the reason why I could not upgrade to 2.4.1 (or 2.4.) But i'm moving site to new hosting so I'll try to update it meanwhile.

So does anyone have the same issue and have solution for it? :) Tnx

46
trabis
Re: URL changer
  • 2009/11/23 22:38

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

bjuti wrote:
2. Trabis said to me that The Publisher is slow comparing to SmartSection.

...5 months ago.
Publisher is faster than Smartsection but it is heavier regarding the use of javascripts. It needs some work.
Quote:

3. The Publisher is in alpha stage. I've tried it and I like it! but.. I must be sure not to lose any of rewritten urls.

There was no change regarding url rewriting methods but you are correct regarding alpha stage, publisher is not bug free and it is not recommended for production sites.

47
bjuti
Re: URL changer
  • 2009/11/24 14:27

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Yup, it's true. I'll try upgrading...

Login

Who's Online

338 user(s) are online (255 user(s) are browsing Support Forums)


Members: 0


Guests: 338


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits