I have a website on my localhost and an url is http://localhost:8484/myweb/onboard
how can I change the url to be like http://localhost:8484/myweb/ without onboard but still point to the same page, is it possibele ?
Just try with following htaccess
RewriteEngine On
RewriteRule ^$ onboard/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ onboard/$1
don't forgot to enable rewrite_module in server
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.