: You are looking for something pretty similar to me. This code worked (it redirects the user to a new link) but it needs some polish Options +FollowSymlinks -MultiViews <IfModule mod_rewrite.c>
You are looking for something pretty similar to me.
This code worked (it redirects the user to a new link) but it needs some polish
Options +FollowSymlinks -MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(.*).example.com
RewriteRule ^(.*)$ /%1-index.php [L,NC]
</IfModule>
So this should redirect someone entering to "baseball.example.com" to example.com/baseball-index.php
Best regards
PS: Credits to Dave Lozier (Redirect subdomain to folder without changing the URL)
More posts by @Kristi941
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.