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.
abraxas wrote:
is this applicable to news module, or tinycontent, or others??
thx ! :)
fragttdg wrote:
Quote:
Dona_Brasil wrote:
Cool, how did you rewrite the CBB url's??
It's very painful,....
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
rlankford wrote:
Which one(s) do you like best? What do you like about them? What don't you like about them?
shape="" type="" coords=""
limecity wrote:
is this applicable to cbb module?
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.
...
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?
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.yourdomain.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R,L]
# 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]
// 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/");
}
RewriteRule ^widgets$ /widgets/ [R=301]
RewriteRule ^widgets/$ modules/smartsection/seo.php?seoOp=item&seoArg=1 [QSA,L]
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 [QSA,L]
RewriteRule ^widgets/blue-widgets.html$ modules/smartsection/seo.php?seoOp=item&seoArg=2&lang=en [QSA,L]
# 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]
davidl2 wrote:
<{$xoops_module_header}>
Basically this needs to be added to your theme (which I believe it is in your case?)
davidl2 wrote:
Otherwise... I think you may need to remove cached files (remember to keep index.html in the cache directory of course )
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)