Welcome Guest, Not a member yet? Register   Sign In
htaccess: Get files from another directory
#1

[eluser]codex[/eluser]
What I'm trying to achieve is that files called via

Code:
http://www.domain.com/files/
are being served from the real directory

Code:
http://www.domain.com/assets/files/whatever/blah/

In my htaccess I have this

Code:
RewriteRule ^http://www.domain.com/files/$ http://www.domain.com/assets/files/whatever/blah/

but that doesn't work. Am I doing something wrong here or is it just not possible?


Messages In This Thread
htaccess: Get files from another directory - by El Forum - 03-20-2009, 07:09 AM
htaccess: Get files from another directory - by El Forum - 03-20-2009, 07:31 AM
htaccess: Get files from another directory - by El Forum - 03-20-2009, 07:48 AM
htaccess: Get files from another directory - by El Forum - 03-20-2009, 08:15 AM
htaccess: Get files from another directory - by El Forum - 03-20-2009, 10:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB