support.domain.com
friends.domain.com
I've put the .htaccess on a support folder like /../domain/public_html/support/
with that code:
- Code: Select all
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#########################################################
# supporto SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.supporto-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
# CATEGORIES
RewriteRule ^.+-vc([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^.+-vf([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^.+-vt([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^.+-vt([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END supporto PAGES
#####################################################
and alla works perfectly.
It's the first time that I install modrewrite on subdomain an I've put the file on /support/ folder like "root" without any /namefolder/ redirections on .htaccess file.
I've a question, if I create another subdomine like friends.domain.com in a folder path like /../domain/public_html/friends/ and with another .htaccess (the same of support folder) can I use modrewrite on the 2 forums?
And on root I just put the robots.txt file like that:
- Code: Select all
User-agent: *
Disallow: /support/viewtopic.php
Disallow: /support/viewforum.php
Disallow: /support/index.php?
Disallow: /support/posting.php
Disallow: /support/groupcp.php
Disallow: /support/search.php
Disallow: /support/login.php
Disallow: /support/post
Disallow: /support/member
Disallow: /support/profile.php
Disallow: /support/memberlist.php
Disallow: /support/faq.php
Disallow: /friends/viewtopic.php
Disallow: /friends/viewforum.php
Disallow: /friends/index.php?
Disallow: /friends/posting.php
Disallow: /friends/groupcp.php
that's right?
thx

English |
French
