Forum Moderators: phranque
[edited by: Ocean10000 at 2:23 pm (utc) on Oct 6, 2014]
[edit reason] examplified [/edit]
RewriteCond %{HTTP_HOST} ^subdomain.example.com/gallery/images/(default|large|thumbnail)/([^/]+\.(gif|png|jpg|jpeg))
For this I have added the rewrite code in my .htaccess file and moved this file in 'feed' subdomain
RewriteRule ^gallery/images/(default|large|thumbnail)/([^/]+\.(gif|png|jpg|jpeg))$ /public_html/t1/t2/$1/$2 [L]
It is giving 404 error because unable to access the path: /public_html/t1/t2/ because this path exists on root and not inside 'feed' subdomain. I can't use my www domain in the place of /public_html/t1/t2/
in the case of using rewrites in a .htaccess file, relative to your document root
apache disables following symbolic links by default
To enable the rewrite engine in this [.htaccess or Directory] context ... "Options FollowSymLinks" must be enabled.