Sorry if I am using wrong terminology, while writing this question. I have a page in the directory on my website:
lorumipsum.com/dir/index.php
I would like to redirect to that page everyone, who would write address
lorumipsum.com/dir
in their browsers. How would would I do that? I tried writing in htaccess this line:
Redirect 301 /dir lorumipsum.com/dir/index.php
but it does not appear to work.
确保您的DirectoryIndex包含index.php
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.