Please help with htaccess. I need to redirect my old site to a new site. if anyone visits the old site, it will redirect to my new site. how can I implement that using htaccess? Thanks
but do you know a simple code to do something like this. for example my old site pages is www.old.com/homerun.html to redirect to new page, www.new.com/homerun/, www.old.com/themes/newpage.html to www.new.com/themes/newpage/ , so basically it will replace the domain and remove the .html
Redirect 301 / http://www.example.com/
应该这样做吗?
您可以使用此重定向生成器: http : //www.htaccessredirect.net/
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.