Hi dudes! And thanks for reading, of course. What should I do to redirect everything from a folder to another (domain.com/forum/file-x.php to domain.com/somethingelse/file-x.php)? There is a phpBB forum installed there, does it make any difference? My webhotel has a cpanel in use so I can do the redirection through it, but is it worth it? What if I change to another company or something - the redirection should still work. So - using cpanel or doing it manually? Thanks, Voimis
Add the following code in your .htaccess file which is in public_html folder: redirectMatch 301 ^/forum/(.+)$ http://www.domain.com/somethingelse/$1 Kailash
What kind of redirect would you like to do - Internal (without changing the URLs) or external (changing URLs)?
Thanks kailash for your coude - but I had to do a little change to it: It didn´t work correctly ´til I changed + to *. So now it works. But here comes another guestion: How to redirect everything from http:// to http://www. ? So the whole site would run from http://www.
To redirect your domain to www, you can use following htaccess rule: rewritecond %{http_host} ^domain.com [nc] RewriteRule ^(.*)$ http://www.domain.com/$1 [r=301,nc] If you have used without www URL in your forum, you may face the problem. Make sure that you change it from admin control panel.