.htaccess redirect woes.

  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

I need to get someone who visits http://www.designsofmontage.com/ to http://www.designsofmontage.com/wholesale/

I used .htaccess file with this inside:
Code: [ Select ]
Redirect / http://www.designsofmontage.com/wholesale/

and I end up with this when I try to view the page:
Quote:
Forbidden
You don't have permission to access /wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/
wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/
wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/
wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/
wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale
/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/
wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/
wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/
wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/
wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/wholesale/
wholesale/wholesale/ on this server.


Anyone see what I am doing wrong?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

This may be of help..*shrugs? (I'm not very knowledgeable on Apache):

http://httpd.apache.org/docs/howto/htaccess.html
  • mnmarkm
  • Student
  • Student
  • User avatar
  • Posts: 82
  • Loc: Cloquet, Minnesota

Post 3+ Months Ago

in httpd.conf you can just add this line for the certain directory and then put the new url (no need to use htaccess):

Redirect old-URL to new-URL


http://forums.devshed.com/t11972/s.html
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

I am on a payhost tho.
  • mnmarkm
  • Student
  • Student
  • User avatar
  • Posts: 82
  • Loc: Cloquet, Minnesota

Post 3+ Months Ago

Then that would present a minor problem...
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

I fixed it, just switched / to /index.html

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 110 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.