Thread: htaccess q.
View Single Post
Old 06-19-2013, 03:02 AM  
v4 media
Confirmed User
 
v4 media's Avatar
 
Industry Role:
Join Date: Feb 2005
Location: Spain
Posts: 2,934
htaccess q.

Got a folder with loads of content called /subdirectory/blah/ want to leave the content in there but use htaccess to call it /anotherdirectory/blah/
so if people click a link for domain.com/subdirectory/blah/ they get the content for domain.com/subdirectory/blah/ but the newurl is domain.com/anotherdirectory/blah/



Does that make sense?

htaccess confuses the fuck out of me. Can never work out what can/cant be done.
I know if I moved the content I can do it with a 301, but if the content hasnīt moved, will it still work?

RewriteRule ^subdirectory/(.*)$ /anotherdirectory/$1 [R=301,NC,L]
v4 media is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote