Forum Moderators: phranque

Message Too Old, No Replies

Can i redirect pdf files

My site is able to redirect pages, but why can't i do other files

         

Karan13

2:59 am on Aug 10, 2005 (gmt 0)

10+ Year Member



My site, is going through a little upgradge process, so we did a new naming convention and redirecting webpages is working great, but can i redirect pdf files. I tried to do it the same way, and my error 404 page popped up. So i was trying to figure out is there a special way to do it, or is it not allowed.

Also due to redirecting i am trying to understand the difference between permanent and temporary redirection. I mean is there any difference, because i figure for example once i remove the line from my htaccess file it should all be the same right. Please let me know.

Thank You in advance.

jdMorgan

1:58 am on Aug 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Karan13,

We'll need more information on the method you are using to redirect pages, and the method you're trying to use to redirect .pdf files. Otherwise, we can only guess.

Jim

Karan13

4:16 am on Aug 11, 2005 (gmt 0)

10+ Year Member



i am using

redirect permanent /files/sep_2004.pdf http://www.example.com/files/2004_sep.pdf

Now this works for html's and php's. Wasn't sure why it wasn't working. It keeps giving 404 errors. Thank You.

jdMorgan

1:50 am on Aug 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't see any problem with your code. What does your server error log say when you get the 404 error?

Jim