H
hp_solomon
Guest
simple rewriting rules worked on me like redirecting or renaming the URL in the same directory but when i tried to rewrite URL that has subdomains and folder it doesn't work. I don't know why.
Here's the script I created on .htaccess located in my root website
RewriteEngine on
Options +FollowSymlinks
RewriteCond %{REQUEST_URI}!^/index\.php
RewriteCond %{HTTP_HOST}!^www\.
RewriteCond %{HTTP_HOST} ^(.+)\.domain\.com
RewriteRule .* http://www.domain.com/viewforum.php?f=%1 [nc]
What i want to achieve is that urls of
http://variable.domain.com will access the page http://www.domain.com/viewforum.php?f=variable
However, the address bar should still show http://variable.domain.com.
This script doesnt work... I don't know why. This is the error i get from the page:
------------------
This is the Pleskâ„¢ default page
If you see this page it means:
1) hosting for this domain is not configured
or
2) there's no such domain registered in Plesk.
For more information please contact Administrator.
------------------
Any Ideas? Please help, I've been researching the net and tried so many but still I failed.
Here's the script I created on .htaccess located in my root website
RewriteEngine on
Options +FollowSymlinks
RewriteCond %{REQUEST_URI}!^/index\.php
RewriteCond %{HTTP_HOST}!^www\.
RewriteCond %{HTTP_HOST} ^(.+)\.domain\.com
RewriteRule .* http://www.domain.com/viewforum.php?f=%1 [nc]
What i want to achieve is that urls of
http://variable.domain.com will access the page http://www.domain.com/viewforum.php?f=variable
However, the address bar should still show http://variable.domain.com.
This script doesnt work... I don't know why. This is the error i get from the page:
------------------
This is the Pleskâ„¢ default page
If you see this page it means:
1) hosting for this domain is not configured
or
2) there's no such domain registered in Plesk.
For more information please contact Administrator.
------------------
Any Ideas? Please help, I've been researching the net and tried so many but still I failed.