简体   繁体   中英

how to make htaccess Rewriterule for a file on root?

I am using Yii framework, I have a file on the website root named test.php, I want to make a rule that redirects this link "staging.mysite.com/p/test" to this file. what I did:

RewriteRule ^p/test$ test.php [QSA,L]

But I got this error

Internal Server Error Application runtime path "/var/www/staging.mysite.com/protected/_ws/runtime" is not valid. Please make sure it is a directory writable by the Web server process.

It says your runtime folder is missing.

try create a runtime folder under /var/www/staging.mysite.com/protected/_ws/

and make the permission to be 775

Then try again?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM