htaccess Question

2 posts by 2 authors in: Forums > CMS Builder
Last Post: February 23, 2016   (RSS)

I have a webpage that I would like to point a new domain name to but eliminate the url string in the browser on the initial landing.

For example I have a Sports section here: www.newspaper.com/sports/

I would like to buy the domain name NewspaperSports.com and point it to: www.newspaper.com/sports/

The domain should remain as NewspaperSports.com at least for the initial landing page.

I don't want the url to be seen as www.newspapersports.com/sports/

Is there a way to do this via .htaccess?

My current code creates a redirect:

RewriteCond %{HTTP_HOST} ^NewspaperSports.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.NewspaperSports.com$
RewriteRule ^/?$ "http\:\/\/NewspaperSports\.com\/sports\/" [R=301,L]

Any help or suggestion would be greatly appreciated.

Dan

Dan Perez