htaccess重定向而不是更改网址

时间:2014-06-26 09:30:47

标签: php apache .htaccess redirect yeoman

如何在不重定向的情况下更改页面网址?

文件结构:

/www
/www/app
/www/app/index.html
/www/app/.htaccess

的.htaccess

Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /

RewriteRule ^(demo1|demo2)\/?$ app [L]

例如

domain.dev/app (index.html page)
domain.dev/app/demo1 (here i want to open my /index.html page without changing url to it)
domain.dev/app/demo2 (same as demo1 route)

0 个答案:

没有答案
相关问题