How to make a website redirection


I want to make a web redirection. That means; my website url to another, in the cpanel it tells me when im trying to do it: Forbidden

You don’t have permission to access /panel/indexpl.php on this server.

Please help me.

There’s 2 methods, but i recommend you to use second.
First method redirects ONLY if you go to, for example, index.html (if meta tag is in that file)
Second method redirects in any way.
1 - meta tag redirection

<meta http-equiv="refresh" content="seconds_to_wait; url=">

(change to your domain name)

2 - htaccess redirection

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.*)$$1 [R=301,L]

(change to your domain name)

so the second method i have to create the index.html and then put your code in it?

For second method you need to create .htaccess file in your htdocs folder.
Also if everything works, mark my message as solution, by clicking on a checkbox

Which source URL do you want to which target URL so I can check?


from to


I just tested this and I didn’t get any errors like that. Setting the redirects worked fine for me.

We did discover and fix an issue causing 403 Forbidden errors while setting redirects. But this was fixed last week. When was the last time you tried to do this?


This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.