```
 The url showing in the address bar: www.testsite.com/news#tab-1
 The url which I want to show: www.testsite.com/news
 The url showing in the address bar: www.testsite.com/news#tab-2
 The url which I want to show: www.testsite.com/events

```

I tried rewriting rule using htaccess 

```
 RewriteCond %{REQUEST_URI} /news#tab-2$
 RewriteRule .* /news[L]

```

and 

```
 RewriteRule www.testsite.com/test www.testsite.com/news#tab-1

```

But it didnt work. Please help.