# Mode Rewrite clean urls

**URL:** <https://forum.kirupa.com/t/mode-rewrite-clean-urls/325218>\
**Category:** programming\
**Created:** [October 3, 2011, 1:20am UTC](https://forum.kirupa.com/t/mode-rewrite-clean-urls/325218 "2011-10-03T01:20:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benny4343](https://avatars.discourse-cdn.com/v4/letter/b/b4bc9f/32.png) [@benny4343](https://forum.kirupa.com/u/benny4343)\
**Post date:** [October 3, 2011, 1:20am UTC](https://forum.kirupa.com/t/mode-rewrite-clean-urls/325218/1 "2011-10-03T01:20:07Z")

</div>

Hi,

I am trying to clean some urls on my site,

For example I see that you can change

> **[Bookmark | AI-Powered Free Website Builder. Create Your Free Website!](https://www.bookmark.com/)**
>
> Create a free website with Bookmark AI Powered Free Website Builder. Choose your website type, your AI design assistant will create your website in 30 seconds.

To something like:  
[http://yoursite.com/cooking/pasta/4](http://yoursite.com/cooking/pasta/4)

So if someone types in:  
[http://yoursite.com/cooking/pasta/4](http://yoursite.com/cooking/pasta/4) he will be redirected to the second url at the top.

But I want the browser to show this:

> **[Bookmark | AI-Powered Free Website Builder. Create Your Free Website!](https://www.bookmark.com#5aaaf328e2407)**
>
> Create a free website with Bookmark AI Powered Free Website Builder. Choose your website type, your AI design assistant will create your website in 30 seconds.

As I understand this rule:  
RewriteRule ^([a-zA-Z0-9-]+)/?$ /index.php?category=$1 [L,QSA]

takes a request with clean url and serves a GET format url.  
But when I look on the net I keep on seeing those clean urls

I must be missing something…

Any ideas
