I've Plesk with 10 subdomain included with DNS
1) I've the following structure:
domain.tld/index.php?site=forum
I want to rewrite it in
forum.domain.tld
I'm trying with no success this htaccess
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} forum.domain.tld
RewriteCond %{REQUEST_URI} !index.php?site=forum
RewriteRule ^(.*)$ forum.domain.tld/$1 [L]
2) Same question but a bit different. I've the following link
domain.tld/index.php?site=article
I want to rewrite article --in--> blog then
blog.domain.tld
3) Let's SEO just need a little help to start
domain.tld/index.php?site=forum&board=2
I want to rewrite forum.domain.tld (already rewrited in the first point) in this way
forum.domain.tld/Board-Name.html
I short first i've to set "-" instead of "_" or "*space*" with this rule
#RewriteRule !\.(html)$ - [S=4]
#RewriteRule ^([^_]*)_([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4-$5 [E=uscor:Yes]
#RewriteRule ^([^_]*)_([^_]*)_([^_]*)_(.*)$ $1-$2-$3-$4 [E=uscor:Yes]
#RewriteRule ^([^_]*)_([^_]*)_(.*)$ $1-$2-$3 [E=uscor:Yes]
#RewriteRule ^([^_]*)_(.*)$ $1-$2 [E=uscor:Yes]
Then i've to query the database
SELECT boardname WHERE boardID=2
I'm trying really hard with no success
I want to underline that it's 5 days that i'm reding tons of pages documentation and that i'm trying hundreds of rewrite rules but i really need an help to start. I asked for help in several forums but nobody really helped me