url rewriting - .htaccess conditional redirect question -



url rewriting - .htaccess conditional redirect question -

i'd utilize .htaccess redirect if there particular subdirectory present.

basically, i'd redirect http://www.mydomain.com http://www.mydomain.com/install if install subdirectory exists.

i know need rewritecond. far, have.

rewriteengine on rewritecond %{request_filename} -d

i'm not sure else create work. need help understanding how .htaccess works.

i'd combine rewriting www.

please help?

this should work, update path install folder in rewritecond:

rewritecond /var/www/domain/htdocs/install -d rewriterule .* install/ [l]

.htaccess url-rewriting

Comments

Popular posts from this blog

c# - Move local mssql database to webhosted MYSQL -

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -