Hi guys, I'm trying to permanently redirect all my pages from www.domain.tld/directory to directory.domain.tld. As I dont have a control panel on the hosting server, I created a .htaccess with following lines: RewriteCond %{HTTP_HOST} !^directory\. RewriteRule ^directory(.*)/?$ http://directory.domain.tld/$1 [L,R=301]. However, nothing happened after I uploaded this file on the server. Am I doing smth wrong? Pls help. 10x.
Silly question, but is the mod rewrite module enabled for your server? Sometimes you need to ask your host to make sure. phplife