Question
.htaccess and symbolic links?
So I am currently using a particular app on apache that is hosted on its own subdomain. In the root directory of this app there is an .htaccess file with the following code
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ /$1/ [L,R=302]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/$1 [L]
I want to create a symbolic link in the directory to link to a completely different app so requests to subdomain.domain.tld/symboliclink/ would use the symbolic link created in the root directory of the subdomain app. The only problem is the .htaccess file above redirects all requests back to itself. How can I set up the subdirectory symbolic link to ignore this .htaccess file so requests to the symbolic link from the web will correctly route traffic while keeping the .htaccess file above unmodified?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×