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

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -