Hallo,
kann mir jemand sagen, wie der redirect-code aussieht für folgende URLs (für .htaccess). Es geht um ein verzeichnis mit bilder drin:
alte adresse:
mysubdomain.dyndns.org/dir/*.jpg
redirect auf:
www.mydomain.tld/dir/*.jpg
Redirect /dir/ http://www.mydomain.tld/dir/
RewriteCond %{HTTP_HOST} ^mysubdomain.dyndns.org/dir/* [NC]
RewriteRule ^(.*)$ http://www.mydomain.tld/dir/* [R=301,L]
ServerName www.mydomain.tld
DocumentRoot /var/www/typo3
<VirtualHost * >
DocumentRoot /var/www/typo3
ServerName www.mydomain.tld
</VirtualHost>
<VirtualHost * >
DocumentRoot /var/www
ServerName mysubdomain.mydomain.tld
</VirtualHost>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^mydomain.tld$ [NC]
RewriteRule ^(.*)$ http://www.mydomain.tld [R=301,L]
Redirect /dipl/ mysubdomain.mydomain.tld/dipl/
RewriteCond %{HTTP_HOST} ^mysubdomain.dyndns.org$ [NC]
RewriteRule ^(.*)$ http://mysubdomain.mydomain.tld [R=301,L]
RewriteCond %{REQUEST_URI} ^.+(/(uploads|(typo3(conf|temp)))/.*)
RewriteRule ^.*$ %1 [L,R=301]
RewriteRule ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ - [L]
Redirect /dipl/ mysubdomain.mydomain.tld/dipl/
Redirect /dipl/ http://mysubdomain.mydomain.tld/dipl/
<Directory /var/www>
borobudur wrote:httpd.conf sieht so aus wie ich dieses gepostet habe.
Users browsing this forum: No registered users and 36 guests