Jump to content

mod_rewrite help!


snuffish

Recommended Posts

Hi, I wondering one thing about mod_rewrite.

We can say that I got a paging system on my page.. like the url says "www.mysite.com/index.php?page=start" and I wanna use mod_rewrite/htaccess to manipulate the URL so it's only says "www.mysite.com" all the time. Is that possible? because I see that's its really risky to put som GET variables sometimes. But It's necessary so..

 

So I would appreciate if someone could help me with this.

Sorry for my english!

 

// Best regards Christoffer.

Link to comment
https://forums.phpfreaks.com/topic/171812-mod_rewrite-help/
Share on other sites

You can't really have www.mysite.com all the time otherwise the server wouldn't know when you are on a different page.

 

You can, however, use mod rewrite to make you url more friendly and perhaps make your variable less obvious

 

e.g.

 

www.mysite.com?user_id=4&page=start

can be made into:

www.mysite.com/4/start  -- obviously this way it's harder to work out what the variables are since you are only shown values

 

 

Link to comment
https://forums.phpfreaks.com/topic/171812-mod_rewrite-help/#findComment-905960
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.