php - How to redirect just homepage to unique url with .htaccess file -
i want redirect 'packagingindustry.fraingroup.com' 'fraingroup.com/blog' there several links within 'packagingindustry.fraingroup.com' want redirect 'fraingroup.com' without trailing slug 'blog.'
how uniquely redirect home url include 'blog' while if other permalinks containing slugs (e.g. - 'packagingindustry.fraingroup.com/blog-title') redirecting fraingroup.com (e.g. - 'fraingroup.com/blog-title')
these 2 redirect statements i'm working with:
# redirect /index.php 'www.fraingroup.com/blog/' # redirect 301 / 'fraingroup.com/'
try:
redirectmatch 301 ^/(index\.php)?$ http://fraingroup.com/blog
the redirect
directive redirect after match, /
redirects pretty much entire site. however, regex , redirectmatch
, can limit exact match.
php .htaccess
No comments:
Post a Comment