81
Dona_Brasil
Re: URL Rewriting for XOOPS - Tips and Tricks

Quote:

abraxas wrote:
is this applicable to news module, or tinycontent, or others??

thx ! :)


As far as I know, there is no URL rewrite included in these modules.



82
Dona_Brasil
Re: URL Rewriting for XOOPS - Tips and Tricks

Quote:

fragttdg wrote:
Quote:

Dona_Brasil wrote:
Cool, how did you rewrite the CBB url's??


It's very painful,....


Wow. I'm impressed.

I like the result but it is realy to much work for a hobbyist

Thanks anyway



83
Dona_Brasil
Looking back on 2006

It's 31-12-2006: time to look back and evaluate before we look forward to the new year ahead

Over the last year, a number of road maps appeared on this website. I did a quick search and I found these

=>https://xoops.org/modules/news/article.php?storyid=2797 (2006/1/11)
=>https://xoops.org/modules/wfchannel/index.php?pagenum=12 (2006/05/07)
=>https://xoops.org/modules/wfchannel/index.php?pagenum=14 (no date of publication but a whole lot of deadlines in 2006)

I wonder what has happened with these plans??



84
Dona_Brasil
Re: URL Rewriting for XOOPS - Tips and Tricks

Quote:

fragttdg wrote:
Valuable input! thanks for share.

I've been doing rewriting things on my own site too. Efforts on apache config or htaccess just works on controlling the URL entrance of each module. Many modules, links inside are hard-coded. You might need to crack the modules in many places.

Modules in my site are using rewrite.

LINK below is my CBB MODULE:
http://www.xiubei.com/forums/index.php


Cool, how did you rewrite the CBB url's??



85
Dona_Brasil
Re: Opinion War -- Battle of the Editors

back to the original questions..

Quote:

rlankford wrote:
Which one(s) do you like best? What do you like about them? What don't you like about them?


I use Koivi. What I don't like about Koivi are these useles atributes in hyperlinks:

shape="" type="" coords=""


No way to remove these, while a useful atributes like target and rel="nofollow" have to be added underwater.

In general, Koivi is a nice editor.



86
Dona_Brasil
Re: URL Rewriting for XOOPS - Tips and Tricks

Quote:

limecity wrote:
is this applicable to cbb module?


No, CBB contains user added content, this way of rewriting URL's requires control by a webmaster as the .htaccess file needs to be adapted.



87
Dona_Brasil
Re: URL Rewriting for XOOPS - Tips and Tricks

Thanks folks, great to see that much enthousiasm!

Success with rewriting, and don't forget to show off your sites when you are ready!



88
Dona_Brasil
Re: Xoops SEO, new statement from Google ?

Quote:

JMorris wrote:
...
Well, you get my point. We still need SEF URLS for XOOPS. My main site is highly indexed by Google even though I have a lot of dynamic URLS. However, when I compare the modules with dynamic URLS vs the modules with SEF URLS [Ex: MyDownloads vs Wordpress], the modules with SEF URLS have consistently outperformed the modules with dynamic URLS even though the modules with dynamic URLS are updated more frequently.

...


There are three relevant questions on rewriting URL's for SEO:

1) Are dynamic URL's indexed as well as static URL's? In other words: are dynamic URL's included in the index of Search Engines as well as static URL's?
2) Do rewritten URL's increase the amount of traffic through search engines? In other words: are these rewritten URL's ranked higher in Search Engines?
3) Do rewritten URL's increase the quality of the trafic compared to dynamic URL's.

I've noticed that some people say that rewriting URL's is not important. I think these people only answer the first question.

It would be very nice if a next version of XOOPS includes SEF URL's!

I described my temporary solution here.



89
Dona_Brasil
URL Rewriting for XOOPS - Tips and Tricks

Another webmaster mailed me:

Quote:

I like your url rewrite of your pages and would like to do the same on my new site.
Can you send me an example of one page to show me how you did the url rewrite for
the SmartSecition modul?


I did different things for different pages. I'm no specialist in this matter but I got my solutions from other people who like to share information. Now it is my turn to share: Besides: I'm curious if other members of this community have more useful tips and tricks on URL Rewrite

Using the tips below, I had nearly as much control over my URL's as Joomla's Open SEF.

General

This is about changing URL's like www.yourdomain.com/modules/smartsection/item.php?itemid=1 in URL's like www.yourdomain.com/widgets.html.

I'm using the Apache Server Mod Rewrite (or mod_rewrite )function. See www.modrewrite.com for more detailed info on mod rewrite.

The phrase

RewriteEngine On


should be included on top of the .htaccess file if you want to enable URL Rewrite

Redirecting yourdomain.com to www.yourdomain.com

Add this code to the .htaccess file in the root of your website.

RewriteCond %{HTTP_HOST} !^www.yourdomain.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R,L]



Start page in different languages for XLanguage

Intention: www.yourdomain.com/index.php?lang=en becomes www.yourdomain.com

and www.yourdomain.com/index.php?lang=nl becomes www.yourdomain.com/nl/

Add something like this to your .htaccess file:

# English
RewriteRule ^en$ / [R=301]
RewriteRule ^en/$ / [R=301
DirectoryIndex index.php?lang=en
# Dutch
RewriteRule ^nl$ /nl/ [R=301]
RewriteRule ^nl/$ /index.php?lang=nl [QSA,L]


Avoid double content by adding something like this to the file /index.php :

// redirect to avoid double content
if(strpos(getenv('REQUEST_URI'), '/index.php?lang=nl') === 0

 
header("HTTP/1.1 301 Moved Permanently");
 
header("Location: http://www.yourdomain.com/nl/");

elseif(
strpos(getenv('REQUEST_URI'), '/index.php?lang=en') === 0

 
header("HTTP/1.1 301 Moved Permanently");
 
header("Location: http://www.yourdomain.com/");

elseif(
strpos(getenv('REQUEST_URI'), '/index.php') === 0

 
header("HTTP/1.1 301 Moved Permanently");
 
header("Location: http://www.yourdomain.com/");
}



Rewriting the URL’s of SmartSection pages like www.yourdomain.com/widgets/ or www.yourdomain.com/widgets/blue-widgets.html

Read the instruction for rewriting URL’s in SmartSection.

I don’t use this for my weblog, ony for my static pages. For my weblog, I use the general instructions that come with SmartSection. I cloned the module to have allow various installations.

In order to get www.yourdomain.com/widgets/, add something like this for each URL to your .htaccess file:

RewriteRule ^widgets$ /widgets/ [R=301]
RewriteRule ^widgets/$  modules/smartsection/seo.php?seoOp=item&seoArg=[QSA,L]


or something like this for multilingual sites:
RewriteRule ^widgets$ /widgets/ [R=301]
RewriteRule ^widgets/$  modules/smartsection/seo.php?seoOp=item&seoArg=1&lang=en [QSA,L]


In order to get www.yourdomain.com/widgets/blue-widgets.html , add something like this for each URL to your .htaccess file:

RewriteRule ^widgets/blue-widgets.html$  modules/smartsection/seo.php?seoOp=item&seoArg=[QSA,L]


Or something like this for multilingual sites:
RewriteRule ^widgets/blue-widgets.html$  modules/smartsection/seo.php?seoOp=item&seoArg=2&lang=en [QSA,L]


Keep some structure in your .htaccess, it makes life easy:

# ENGLISH
# CATEGORY widgets
RewriteRule widgets $ /widgets/ [R=301]
RewriteRule widgets/$  modules/smartsection/seo.php?seoOp=item&seoArg=1&lang=en [QSA,L]
RewriteRule widgets/blue-widgets.html$  modules/smartsection/seo.php?seoOp=item&seoArg=2&lang=en [QSA,L]
RewriteRule widgets /green-widgets.html$  modules/smartsection/seo.php?seoOp=item&seoArg=3&lang=en [QSA,L]
# DUTCH
# CATEGORY pruiken
RewriteRule nl/pruiken $ /nl/pruiken [R=301]
RewriteRule pruiken/$  modules/smartsection/seo.php?seoOp=item&seoArg=4&lang=nl [QSA,L]
RewriteRule nl/pruiken/blauwe-pruiken.html$  modules/smartsection/seo.php?seoOp=item&seoArg=5&lang=nl [QSA,L]
RewriteRule nl/pruiken/groene-pruiken.html$  modules/smartsection/seo.php?seoOp=item&seoArg=6&lang=nl [QSA,L]



90
Dona_Brasil
Re: Sudden mess after updating CBB

Quote:

davidl2 wrote:
<{$xoops_module_header}>

Basically this needs to be added to your theme (which I believe it is in your case?)


Yes

Quote:

davidl2 wrote:
Otherwise... I think you may need to remove cached files (remember to keep index.html in the cache directory of course )


done too

Quote:

davidl2 wrote:

and perhaps regenerate the templates - as they'll have changed from the old newbb ones.

(This is only from memory, but I believe it's the common solution)


Yipppeeeeeeeeeee, it works! That was the thing I had forgotten.

Thanks a zillion!




TopTop
« 1 ... 6 7 8 (9) 10 11 12 »



Login

Who's Online

130 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 130


more...

Donat-O-Meter

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

Latest GitHub Commits