![]() We will explain each one:įirst alternative, redirect a specific page called /sourcepage.html to another URL: Redirect 301 /sourcepage.html You can choose one of the following code options. This method requires FTP access to the server so that you can upload files. htaccess really contains one “.” on its beginning! htaccess in your server and placing a specific line to make the URL redirection. This method consists in editing a file called. ![]() In this case, the PHP file would look like: Method 4: Redirect URL using. We can also use a more complete PHP file, specifying that this is a 301 redirect (permanent). This way, whenever we access this specific PHP file, the user will be redirected to our destination site. Now, by this method, you need FTP access to edit files in your server as well. This is the old page that will redirect to the new one įor example, here’s how the HTML will look like: Simply edit the specific source HTML file, and add this line to your section. You just need access to edit the HTML files of the source URL you wish to redirect. This is the solution about how to redirect a URL when you have FTP (or similar) access to your site. Ĭlick Add, and the URL redirect is done! The source URL will redirect to another URL. Under Redirects to, place the details of the destination URL. Firstly, we recommend keeping the field Type as Permanent (301).Īfterward, select the domain name you wish to redirect to outside. Then, we will explain how to configure the URL redirect in this screen. Scroll down and find the Domains – Redirects icon, as shown in the photo. This is maybe the easiest and fastest method.įirstly, access your cPanel control panel. Method 1: Redirect URL using cPanelīy this method, you need access to your cPanel control panel. Otherwise, you can lead to a 404 error page. Make sure you place the correct destination URL. As a conclusion, we recommend using 301 Redirects whenever possible. Google values much more pages with permanent ones (301 Redirects), as per Matt Cuts. There are basically two types of redirection: temporary (302) and permanent (301). That means that when the visitor comes into the source (old) URL, it will be transferred automatically to the destination (new) URL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |