Forum Moderators: phranque
RewriteCond %{HTTP_HOST} !^www\.webzjop\.info$ [NC]
RewriteCond %{HTTP_HOST} !^webzjop\.info$ [NC]
"In fact I'm surprised your browser doesn't step in and put up a "This is going nowhere fast" message."These are not 301 or 302 redirects. These are internal redirects as the url in the adress bar does not change.
What else could the host be?It will be the unique hostname of the user that registers it; for ex. If i sell for example computers; i could register the alias "computer" - any my webshop will be on this url: [computer.webzjop.info...] (the link is an working example)
But what does /images/ mean?It means, rewrite all subdomains, starting with directory /images/$ to /home/content/10/9013010/html/images/$1
RewriteCond %{HTTP_HOST} !^www\.webzjop\.info$ [NC]
RewriteCond %{HTTP_HOST} !^webzjop\.info$ [NC]
RewriteRule ^(.*)$ /shops/index.php [NC] RewriteRule ^images/(.*)$ /images/$1 [L] RewriteRule ^images1/$ /images/ [nc]
RewriteCond %{HTTP_HOST} !^www\.webzjop\.info$ [NC]
RewriteCond %{HTTP_HOST} !^webzjop\.info$ [NC]
RewriteRule ^(.*)$ /shops/index.php [NC]
does not prevent images1 to be excluded from the rewrite.
Are you sure you want to externally redirect to a different URL?These should all be internal rewrites, the url in the adress bar should not change.
The index file rewrite can be performed by the DirectoryIndex directive.I dont get how directoryindex is gooing to save my ass. Its not like i am getting a 404 not found error. If you could elaborate please.
Is there any point where all your domains and subdomains pass through the same htaccess file? That makes the difference between a simple Rewrite and an icky messy Rewrite involving a Proxy.Yes.!.evertyhing goes through the same htaccess file. I long back to the old days where i had a dedicated server i could just in httpd.conf say:
<VirtualHost webzjop.info:80>
DocumentRoot /var/www/html
ServerName webzjop.info, www.webzjop.info
</VirtualHost>
<VirtualHost webzjop.info:80>
DocumentRoot /var/www/html/shops
ServerName webzjop.info
ServerAlias *.webzjop.info
</VirtualHost>
sorry that i keep on posting; but is there an syntax error i am making on the following?
RewriteRule !^images/$ /shops/index.php [NC]
I think it should mean: if the directory is anything other than images do your rewrite, but it is not working.