Rate this article

Incorrect download links when using mod_rewrite

Rating: 4.7/5 (3 votes cast)

I am using mod_rewrite and .htaccess to make my URL's more user-friendly.
Problem is now the download link is all wrong for download files and it gives a 404 error.
How can I get rid of the "seo rewriting"

A very simple way of fixing the problem is by simply adding the following line of code directly following the closing head tag

<base href="http://www.yourdomain.tld/" />

This simply tells the browser to "forget" the seo rewriting and "reset" everything back to normal

Adobe

Free PositiveSSL and WhoisGuard with Every Domain Purchase
XMS Systems
ionCube Online PHP Encoder

Although we try to ensure all the articles submitted are valid it is your responsibility to make sure you have backups before you use these suggestions on your pc or websites.
We do not take any responsibility for any data-loss, loss in functionality or any problem that might arise in what-ever way or form by making use of the information on this site.

"Friends of Interakt" has no connection to the Adobe Interakt Company