Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

does anyone know how to make this work in .htaccess?


inferno272

Recommended Posts

Posted

im curious if anyone knows how to do this. in my oscommerce store i used to have a few directories that stored other information.

 

for example, you could go to www.mystore.com/blah/rockymountains/ and see a bunch of pictures from the rocky mountains.

 

how do i get it so that if someone types in that direct URL, or any url further in that folder (for example www.mystore.com/blah/rockiemountains/arial_shots/Shot1.jpg) it will redirect them to another site i have that now stores all the information(for example www.myothersite.com)?

 

i know i can do it with html and a meta tag that forward them, but id rather have it done automatically, and w/o that page ever showing up.

 

is this possible?

Posted

there are a few ways of doing that but the best method having SEO in mind is using .htaccess file

create a file named ".htaccess" using a text editor and enter in the following:

 

Redirect permanent / http://www.myothersite.com

 

save the file and place it in your "/blah/rockiemountains/arial_shots" folder to cut off access to any file inside this folder.

obviously to cut off access to files in "/blah" folder and all its sub-folders and everything inside all of them you could place the file inside "/blah"

 

cheers.

Santa's little freelancer

Posted
there are a few ways of doing that but the best method having SEO in mind is using .htaccess file

create a file named ".htaccess" using a text editor and enter in the following:

 

Redirect permanent / http://www.myothersite.com

 

save the file and place it in your "/blah/rockiemountains/arial_shots" folder to cut off access to any file inside this folder.

obviously to cut off access to files in "/blah" folder and all its sub-folders and everything inside all of them you could place the file inside "/blah"

 

cheers.

awesome, sounds exactly like what i wanted.

 

Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...