tensh |
|
---|---|
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: 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' ?? 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] |
|
Отредактировано: tensh (05.02.2013 14:11, 12 лет назад) |