How to make a website redirection

Hello,

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.
Thanks

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=http://www.newdomain.com/new-page.html">

(change newdomain.com to your domain name)

2 - htaccess redirection

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
</IfModule>

(change newdomain.com 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?

3 Likes

from redirection123.rf.gd to ghasthosting.cf

@Admin

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?

2 Likes

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