Portal Home > Knowledgebase > Articles Database > .htaccess url rewriting on 1and1 hosting


.htaccess url rewriting on 1and1 hosting




Posted by klavsr, 12-30-2009, 03:24 PM
Hello, 1and1 has a really strange setup. What works everywhere else, doesn't work with them. I am new to url rewriting so here's the problem. I got it to redirect 'about-us/' to 'index.php?p=1' using this code: I need to make "about-us/our-board/" work, so I tried adding one more line: but this doesn't work. Is there a solution for this? Thank you!

Posted by TotalZen, 12-30-2009, 07:21 PM
Try this for your last 2 rules (in this order)... RewriteRule ^about-us/our-board/(.*)$ index.php?p=1_1 [L] RewriteRule ^about-us/(.*)$ index.php?p=1 [L]

Posted by klavsr, 12-31-2009, 07:23 AM
TotalZen, thanks! This works

Posted by linux_crazy, 12-31-2009, 01:16 PM
Redirect /index.html http://example.com/newdirectory/ This should also work without any issues.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Port scanning issues (Views: 732)


Language: