php - configuring httpd conf in aws -
i update httpd conf in elastic beanstalk
set allowoverride all
, hence allow myself execute following .htaccess
code:
rewriteengine on rewriterule ^/?category/([^/d]+)/?$ searchpage.php?crs_category=$1 [l,qsa]
the htaccess file located in root
to configure httpd conf trying follow below guide:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers.html
my problems follow:
- my computer not allow me create folder called
.ebextensions
- won't accept dot in front of exbextensions
i place .config
file inside exbentension following code:
<directory /> options none allowoverride order deny,allow deny </directory> <directory /path/to/your/htdocs/> allowoverride </directory>
i not sure if following/executing things properly, , appreciate guidance.
windows explorer doesn't allow create file names starting .
believe reason lies in dos file names had separate fields name , extension, , file name not empty.
the workaround know use mkdir
create directories starting .
:
mkdir .ebextensions
similarly, if have troubles create file starting .
, can use:
echo > .config
this create empty file named .config
able modify notepad example.
Comments
Post a Comment