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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.