2

I'm currently setting up a webshop system and was thinking about making subdomains for these users. As I have done this a few times in the past I started of with the same code but for some reason it's not working out. Maybe someone here can shed some light on the mistaOptions +FollowSymLinks

Options +Indexes 
RewriteEngine On 
RewriteBase /

RewriteCond %{HTTP_HOST} ^(www.)?testserver.com$
RewriteRule ^(/)?$ ee [L]

RewriteCond %{HTTP_HOST} !www.testserver.com$ [NC]
RewriteCond %{HTTP_HOST} ^([a-z0-9-]+).testserver.com [NC]
RewriteCond %{REQUEST_URI} !^index.php/ [NC]
RewriteRule (.*) http://www.testserver.com/Webshops/index.php/store_example/%1/$1 [P,L]

I would like the subdomain to redirect to somewhere and add everything after it as well so for example: testme.testserver.com/products/product-1 would be the url but would display http://www.testserver.com/Webshops/index.php/store_example/product/product-1

Anyone who has an idea where I'm going wrong?

user1664
  • 481
  • 1
  • 7
  • 6

0 Answers0