Jump to content

Recommended Posts

Posted

I've read posts on using the .htaccess file to set up redirection.

 

Can this be used for .ZIP files as well as pages? If so can you provide an example.

 

I have the .ZIP files in my web space and want to move them to a subdirectory called "zips".

 

So if I have a link on another website that accesses www.****/whatever.zip I want it redirected to www.****/zips/whatever.zip

 

Can it be done?

 

Thanks in advance. :lol:

Posted

>redirect 301 whatever.zip  http://www.****/zips/whatever.zip

 

should do the trick.

 

Try it and see (and let us know).

Posted

Well, since that is the only line in my .htaccess file didn't need a backup. But it didn't work. I added the following.

 

redirect 301 bomber.zip  http://www.pdabruce.com/zips/bomber.zip

 

It didn't work as you can see www.pdabruce.com/bomber.zip

 

This is the .htaccess file in the public_html directory I am supposed to be modifying, right?

 

Sorry, but I feel like a newbie again! :lol:

Posted (edited)

Sorry typo, try:

 

>redirect 301 /bomber.zip  http://www.pdabruce.com/zips/bomber.zip

 

the / in front is important :lol:

Edited by TCH-Scott

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...