Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 05-15-2006, 01:28 PM
theChronic's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 12-19-05
Location: Berkeley, California
Posts: 393
iTrader: 0 / 0%
.htaccess redirect folder to other folder

Hey whats up
Does anyone know of a way so that if anything in a folder is accessed, it is redirect to the same file name but in a different folder?

Here is the human concept:
redirect 301 /people/cool/* http://www.jkfdljakfl.com/people/awesome/*

Thanks a lot
John
__________________
Looking to meet other talented web devs.

Feel free to PM me if integrating high level & performance statistics in a web environment interests you!
 
Reply With Quote
  #2 (permalink)  
Old 05-20-2006, 09:09 PM
kenkam's Avatar
Junior Member
 
Join Date: 05-20-06
Posts: 22
iTrader: 0 / 0%
Apache URL Rewrite Guide
 
Reply With Quote
  #3 (permalink)  
Old 06-22-2008, 12:22 AM
Junior Member
 
Join Date: 06-22-08
Posts: 1
iTrader: 0 / 0%
[QUOTE=theChronic;326478]
Here is the human concept:
redirect 301 /people/cool/* http://www.jkfdljakfl.com/people/awesome/*

Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteRule ^people/cool(.*)$ http://www.jkfdljakfl.com/people/awesome$1 [L,R=301]

</IfModule>

If you already have your .htaccess setup with other redirects, just add that section that does the redirection as shown above.

Note: I was looking for something similar and I found this but with a rather unforgiving answer that reads RTFM. Why would someone want to read the whole manual to find a single solution.

I registered just to reply to this question so others in future might find it useful.

So, enjoy!
 
Reply With Quote
  #4 (permalink)  
Old 06-28-2008, 02:42 PM
kos's Avatar
kos kos is offline
Coding Tiger
Latest Blog:
Happy New Year 2013

 
Join Date: 04-13-07
Location: .ro
Posts: 4,030
iTrader: 3 / 100%
Thumbs up to you, Brajeshwar!
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 6 (0 members and 6 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change of folder name anie_b SEO Forum 2 03-09-2008 04:33 AM
how can i secure a folder? funguru Coding Forum 3 07-27-2007 11:16 AM
Need help with folder/.htaccess deny all Kalina Web Design Lobby 11 01-25-2006 05:57 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 03:54 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.