当用户访问 domain.com/test / 时,默认情况下应显示 domain.com/test/folder/index.php 。
ods escapechar='~';
proc sgplot data=fig2;
series x=hour y=SB /legendlabel='SB' MARKERS LINEATTRS = (THICKNESS = 1 pattern=solid) MARKERATTRS=(SYMBOL=DIAMOND);
series x=hour y=LPA /legendlabel='LPA' MARKERS LINEATTRS = (THICKNESS = 1 pattern=solid) MARKERATTRS=(SYMBOL=PLUS);
series x=hour y=MPA /legendlabel='MPA' MARKERS LINEATTRS = (THICKNESS = 1 pattern=solid) MARKERATTRS=(SYMBOL=CIRCLE);
series x=hour y=MVPA /legendlabel='MVPA' MARKERS LINEATTRS = (THICKNESS = 1 pattern=solid) MARKERATTRS=(SYMBOL=TRIANGLE);
series x=hour y=VPA /legendlabel='VPA' MARKERS LINEATTRS = (THICKNESS = 1 pattern=solid) MARKERATTRS=(SYMBOL=SQUARE);
yaxis label= "Absolute Percent Error (%)" ;
**xaxis label= "Wear Time hours·day ~{unicode'207b'x}~{unicode'00b9'x}"** type=discrete ;
keylegend /position=right NOBORDER;
run;
目前我使用:
index.html <-- current homepage
/test/ <-- .htaccess file
/folder/
index.php
但还有其他方法吗?我尝试过RewriteRule,但它没有工作:
DirectoryIndex folder/index.php
答案 0 :(得分:2)
您可以在/test/.htaccess
:
DirectorySlash Off
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^[^/]*$ folder/index.php [L]