I have a site that people will come to and have their usernames in the URL.
www.mysite.com/someusername. If they visit the site with www.mysite.com/canehdn/products it should internally redirect to /replicated/products/.
I'm trying to get it so when people do this apache internally redirects to:
/replicated/ --> dir & files in here. This is what I currently have.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\/(.+)$ /replicated/$2 [QSA,L]
This is kind of working.
--http://www.mysite.com/canehdn/test/ --> /replicated/test/index.php (Works correctly)
--http://www.mysite.com/canehdn/test/index.php --> /replicated/index.php (Should go to /replicated/test/index.php)
--http://www.mywakeupnow.com/canehdn/ --> doesn't work at all. should go to /replicated/index.php
--http://www.mywakeupnow.com/canehdn/index.php --> /replicated/index.php (Works correctly)
Any help on this would be super appreciated.
Thanks everyone
www.mysite.com/someusername. If they visit the site with www.mysite.com/canehdn/products it should internally redirect to /replicated/products/.
I'm trying to get it so when people do this apache internally redirects to:
/replicated/ --> dir & files in here. This is what I currently have.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\/(.+)$ /replicated/$2 [QSA,L]
This is kind of working.
--http://www.mysite.com/canehdn/test/ --> /replicated/test/index.php (Works correctly)
--http://www.mysite.com/canehdn/test/index.php --> /replicated/index.php (Should go to /replicated/test/index.php)
--http://www.mywakeupnow.com/canehdn/ --> doesn't work at all. should go to /replicated/index.php
--http://www.mywakeupnow.com/canehdn/index.php --> /replicated/index.php (Works correctly)
Any help on this would be super appreciated.
Thanks everyone