apache - URL rewriting: Rewrite index.html to /home-page search friendly text -
all website pages named index.html under relevant directories. e.g:
www.mydomain.com takes me to
www.mydomain.com/index.html and clicking on about-us page, url comes as
www.mydomain.com/about-us/index.html (where about-us name of directory)
how rewrite these urls using .htaccess site more search friendly? like: when user goes www.mydomain.com should rewrite url to
www.mydomain.com/my-home-page and when user goes to
www.mydomain.com/about-us/index.html it should rewrite url to
www.mydomain.com/about-us/about-me-page
rewriteengine on rewriterule ^$ /my-home-page.html [l,nc] rewriterule ^about-us/index.html$ /about-us/about-me-page.html [l,nc]
Comments
Post a Comment