Using .htaccess to rewrite your dynamic URLs
Website developers often change the url extension of website from php to HTML or vice versa. However this is not as easy as it sounds. There are things that need to be checked properly. Sometimes the on and off site links can create a lot of troubles and as results the search engines will not display the link.
That is why there are certain redirection techniques the coders follow to avoid such trouble. You can leave the existing webpage and work on the HTML redirect. You can use times redirect code in this case. Before saving anything in the code you need to check the code properly. Once the preview is correct you can save the code and can carry on. In the following article we are going to take a look at this.
Redirecting in htacess file is another option that you can opt for. In your website directory you need to insert the code to redirect. If you do not have any htaccess file in the directory then you need to find the htaccess code from internet and paste in into some notepad file. Now you just need to upload the file into the website directory of your website.
In case you are hosting the site in a Linux server then you need to follow the Apache mod rewrite structure. If you do that then you will be able to redirect the URL to another without even creating ay trouble for the user.
There are various modules you can get online. You can get huge help from them. You will get to know how to redirect the new static URL and how to use the .htaccess file and all other details.




