.htaccess rewrite full domain name -


What do the users to download the file anyway: download.mywebsite Com / thefile in the browser address, while "download.mywebsite.com/thefile" does not exist but "www.mywebsite.com/thefile".

I've got almost zero knowledge. Htaccess and mod_rewrite engine I hope my question is clear.

If you own mywebsite.com yes, you can enter your root You can put a server alias in httpd.conf directive, then use mod_rewrite to rewrite all the requests for download.mywebsite.com. / Thefile to www.mywebsite.com/thefile on mod_rewrit E will not know whether a file already exists

Another way of doing this will apply a custom error document for a 404 handler that will redirect the user to the suggested URL.

Comments