Simple mod_rewrite Tutorial

Started on the old forum in October 2009 · view the original in the archive · old links redirect here

29 replies · 3,322 views · started 17 years ago · 3 min read

TL;DR · summary of 29 replies
  • The question asked about hiding session IDs using mod_rewrite.
  • Answers provided suggestions for hiding session IDs, including one specific rewrite rule: /main-(a-z0-9) /main?sid=$1 [NC].
  • Some users suggested creating new scripts with better ways to hide session IDs rather than relying on mod_rewrite.
  • The thread did not resolve how to fully hide session IDs using mod_rewrite.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

11 participants
riderz Lead · 975 posts #21

Subzero he meant u must go steal his session lol


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

subzero Super moderator Fellow · 3,954 posts #22

all i need to do is steal is a image file i will not code it for others to steal with this code i still see your id

when im done with my script it will have the code to hide sid but really try to steal it

all you will get is my username wow lol

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

12345xmen Developer · 239 posts #23

how i knw mod rewite is wrking in my host or not ya is ist open in my host ya how i open this in my host ?

i try in my host to edit via htaccess but its not wrk thats y i ask this ?

metulj Super moderator Principal · 1,726 posts #24

12345xmen wrote: how i knw mod rewite is wrking in my host or not ya is ist open in my host ya how i open this in my host ?

i try in my host to edit via htaccess but its not wrk thats y i ask this ?

save this code as info.php and uploadit to your root directory then just point your browser to http://your.domain/info.php

<?php

phpinfo();

?>

and see there if your host support mod_rewrite

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

12345xmen Developer · 239 posts #25

Ok metulz i try then tel u what hapen. Thanks

modfiles Developer · 200 posts #27

did anyone manage to make a work around for getting and passing the action to post/get/display the certain action? something like

htaccess file is

RewriteEngine On
RewriteRule home/(.*)-(.*)/?$ index.php?act=main&topic=123

so http://localhost/index.php?act=main&topic=123 becomes http://localhost/home/main-123

and in your snippet, you got this

$action = $_GET["topic"];

so basically, you can no longer get or display the value of topic (which is 123)

koizumi Developer · 81 posts #28

its pretty straight forward.

RewriteEngine on
RewriteRule home/(.*)-(.*)/?$ index.php?act=$1&topic=$2
arnage Lead · 811 posts #29

And if you have three variables in url add only $3?

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
modfiles Developer · 200 posts #30

better use mod_rewrite rewriterule generator (google search will help) its easier and just edit it to your likings. but that dont work with a form thing

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close