# .htaccess redirect and URL rewrite

**URL:** <https://forum.kirupa.com/t/htaccess-redirect-and-url-rewrite/199329>\
**Category:** programming\
**Created:** [September 1, 2006, 2:46pm UTC](https://forum.kirupa.com/t/htaccess-redirect-and-url-rewrite/199329 "2006-09-01T14:46:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffduck](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@jeffduck](https://forum.kirupa.com/u/jeffduck)\
**Post date:** [September 1, 2006, 2:46pm UTC](https://forum.kirupa.com/t/htaccess-redirect-and-url-rewrite/199329/1 "2006-09-01T14:46:29Z")

</div>

I have a site that is mostly business listings. So as far as bots see, my site is mostly  
…?country=US&state=CA&id=C12345  
…?country=US&state=NV&id=C65432  
…?country=US&state=AZ&id=C09876  
etc. (About 4000 of them)

I’ve just read how to use .htaccess to create readable urls for the bots (I’m new at this) but my problem is when a user navigates to them, the pages show in a popup without any other navigation.

So if I’m understanding things correctly, when a visitor comes to these urls from a search engine, I need to have them taken to a page that includes navigation. The page will still contain all the indexed info.

It seems to me that the redirect feature won’t do exactly what I need. Am I wrong? Can someone give me an example or send me in a better direction?

Thanks much.
