URL Redirect

Just want to give a background. Currently, our company web site is redesigned and there are about 200 current URLs will have new redirects. I don't want to enter them in the config file rather would like to have them in a text file/config file and referring the file from the config whenever the URLs being referred. Being new to Apache world, is this possible to do it Apache?

The file will have urls like this. This is just an example. I don't know what is the format of entries in this file.

<current_URL="\test.html" Replace_URL="\test1.html">

Thanks in advance.

Do the old URLs have anything in common, like a directory or naming? If so, you could use a rewrite rule to direct them to a script, which then produces the correct 301 redirections for each page.

Or, if available, use the RewriteMap rule with an appropriate external program, but this wouldn't tell the clients that the target has been moved permanently and would run on every request.

Yes this can be done using the .htaccess file which will be helpfull to manage you
:slight_smile: