Forums / Cotonti / Support / [problem] Page lists as subdomains

tensh
#36954 2013-02-04 14:46

Hi;

A quick question: what should I do to rewrite page lists to subdomains? (and will it consider internationalization plugin?)

like: www.something.com/news into www.news.something.com

Thanks in advance,

(I'm not good at searching forums for answers, I was searching like an hour for this topic ^^)

--

side question:
Do you consider forum rewrite in the future? Forum rewrite is awesome because of the amount of info that would be indexed by google. If not, would it be possible to do by myself as a plugin?

Added 23 hours later:

Okay, I have some progress... but still questions.

I made this in urleditor plugin:

page     *                   http://{$c}.{$_host}/{$al}
page     c=*               http://{$c}.{$_host}/
page     c=*&al=*     http://{$c}.{$_host}/{$al}

Do I have to add here anything else?

How can I make the second nested page category be displayed like 'news.mysite.com/somecategory-under-news/welcome' ??

Also, how can I stay logged in when browsing subdomains? I can't switch Cotonti to multidomain since it breaks the rewrite rules.

Added 3 minutes later:

P.S. My htaccess:

# All the rest goes through standard rewrite gateway
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]+) index.php?rwr=$1 [QSA,NC,NE,L]
RewriteCond %{HTTP_HOST} ^([^/&?#]+)\.localhost$ [NC]
RewriteRule ^(.*)$ page.php?c=%1$1 [QSA,NC,NE,L]
RewriteRule ^([^/&?#]+)(.*)$ page.php?c=%1&al=$1$2 [QSA,NC,NE,L]
This post was edited by tensh (2013-02-05 14:11, 11 years ago)