Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
7 + 8 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
]*)>/i' , '/]*)(href|url)=([\'\"]{0,1})'.$XPS_URL.'\/([a-zA-Z0-9\_\-]+)\.php\?([a-zA-Z0-9\_\-]+)=([a-zA-Z0-9\_\-]*)(#?[a-zA-Z0-9]*)([\'\"]{1})([^>]*)>/i' , '/]*)(href|url)=([\'\"]{0,1})'.$XPS_URL.'\/([a-zA-Z0-9\_\-]+)\.php\?([a-zA-Z0-9\_\-]+)=([a-zA-Z0-9\_\-]*)&?(?:amp;)?([a-zA-Z0-9\_\-]+)=([a-zA-Z0-9\_\-]*)(#?[a-zA-Z0-9]*)([\'\"]{1})([^>]*)>/i' // Search URLs of modules' directry. , '/]*)(href|url)=([\'\"]{0,1})'.$XPS_URL.'\/modules\/([a-zA-Z0-9\_\-]+)\/(#?[a-zA-Z0-9]*)([\'\"]{1})([^>]*)>/i' , '/]*)(href|url)=([\'\"]{0,1})'.$XPS_URL.'\/modules\/([a-zA-Z0-9\_\-]+)\/([a-zA-Z0-9\_\-]+)\.php(#?[a-zA-Z0-9]*)([\'\"]{1})([^>]*)>/i' , '/]*)(href|url)=([\'\"]{0,1})'.$XPS_URL.'\/modules\/([a-zA-Z0-9\_\-]+)\/([a-zA-Z0-9\_\-]+)\.php\?([a-zA-Z0-9\_\-]+)=([a-zA-Z0-9\_\-]*)(#?[a-zA-Z0-9]*)([\'\"]{1})([^>]*)>/i' , '/]*)(href|url)=([\'\"]{0,1})'.$XPS_URL.'\/modules\/([a-zA-Z0-9\_\-]+)\/([a-zA-Z0-9\_\-]+)\.php\?([a-zA-Z0-9\_\-]+)=([a-zA-Z0-9\_\-]*)&?(?:amp;)?([a-zA-Z0-9\_\-]+)=([a-zA-Z0-9\_\-]*)(#?[a-zA-Z0-9]*)([\'\"]{1})([^>]*)>/i' , '/]*)(href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\_\-]+)=([a-zA-Z0-9\_\-]*)&?(?:amp;)?([a-zA-Z0-9\_\-]+)=([a-zA-Z0-9\_\-]*)&?(?:amp;)?([a-zA-Z0-9\_\-]+)=([a-zA-Z0-9\_\-]*)&?(?:amp;)?([a-zA-Z0-9\_\-]+)=([a-zA-Z0-9\_\-]*)&?(?:amp;)?([a-zA-Z0-9\_\-]+)=([a-zA-Z0-9\_\-]*)(#?[a-zA-Z0-9]*)([\'\"]{1})([^>]*)>/i' ); $out = array( // Replace URLs of Xoops's root directry. '' , '' , '' // Replace URLs of modules' directry. , '' , '' , '' , '' , '' , '' , '' , '' ); $s = preg_replace($in, $out, $s); // $s = preg_replace('/]*)>/i','{\\1}', $s); // $s = $s.''; return $s; } [/code] But we could also add module-specific rewrites (in separate config files like coRewriteModule.ini.php?). Just look at the [url=https://xoops.org/modules/mediawiki/index.php/.htaccess]great job Wishcraft did for some popular modules[/url]: [code]This is the modification for SEO paths for News RewriteRule ^news/([a-zA-Z0-9\ \%\_\-]+)/([a-zA-Z0-9\ \%\_\-]+)/comment_([a-zA-Z0-9\&\%\?\_\.\-\=]+) modules/news/comment_$3 [L,NC,QSA] RewriteRule ^news/([a-zA-Z0-9\ \%\_\-]+)/([a-zA-Z0-9\ \%\_\-]+)/images/(.*) modules/news/images/$2 [L,NC,QSA] RewriteRule ^news/([a-zA-Z0-9\ \%\_\-]+)/images/(.*) modules/news/images/$2 [L,NC,QSA] RewriteRule ^news/images/(.*) modules/news/images/$2 [L,NC,QSA] RewriteRule ^news/([a-zA-Z0-9\ \%\_\-]+)/([a-zA-Z0-9\ \%\_\-]+)/([0-9]+) modules/news/article.php?storycategory=$1&story_title=$2&storyid=$3 [L,NC,QSA] RewriteRule ^news/([a-zA-Z0-9\ \%\_\-]+)/([a-zA-Z0-9\ \%\_\-]+)/ modules/news/article.php?storycategory=$1&story_title=$2 [L,NC,QSA] RewriteRule ^news/([a-zA-Z0-9\ \%\_\-]+)/([0-9]+),([0-9]+) modules/news/index.php?storycategory=$1&topic_id=$2&start=$3 [L,NC,QSA] RewriteRule ^news/([a-zA-Z0-9\ \%\_\-]+)/ modules/news/index.php?storycategory=$1 [L,NC,QSA] RewriteRule ^news/([0-9]+),([0-9]+) modules/news/index.php?topic_id=$1&start=$2 [L,NC,QSA] RewriteRule ^news/ modules/news/index.php [L,NC,QSA] RewriteRule ^news modules/news/index.php [L,NC,QSA] RewriteRule ^news/article.php?storyid=([0-9]+) modules/news/article.php?storyid=$1 [L,NC,QSA][/code] We could create a working platform where XOOPS users can add rewrite plugins per module (like the one above). This smarty output filter can save us a lot of time hacking our php files. Dugris and others, what do you think of this concept?[/quote]" />

Re: URL changer
by bjuti on 2009/11/24 14:27:46

Yup, it's true. I'll try upgrading...
Re: URL changer
by trabis on 2009/11/23 22:38:53

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.
Re: URL changer
by bjuti on 2009/11/23 22:05:41

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
Re: URL changer
by Mamba on 2009/11/23 21:59:14

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.
Re: URL changer
by bjuti on 2009/11/23 21:33:55

Anyone?

Who's Online

204 user(s) are online (164 user(s) are browsing Support Forums)


Members: 0


Guests: 204


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits