Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-23-2003, 04:02 PM   #1
hornycash
Confirmed User
 
Join Date: Jun 2002
Location: far beyond reality
Posts: 2,336
Anyone interested in learning some mod_rewrite?

Heya!

Yes, i got it mod_rewrite was one of the big secrets for me
but now, i figured it out and wanna share my new knowledge
(it's not really deep but enough to set up something) with you
guy's

so come on, let's share something
hornycash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:04 PM   #2
- Jesus Christ -
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
"i figured it out"



You can do almost anything with mod_rewrite (except manupulate the contents of files)
its like a programming language.
__________________

Amen
- Jesus Christ - is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:07 PM   #3
Why
MFBA
 
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
i have lots of stuff already setup using mod_rewrite. its pretty cool shit.
Why is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:08 PM   #4
Weppel
Confirmed User
 
Join Date: Aug 2003
Location: Netherlands
Posts: 2,190
Show me, i'm always willing to learn
Weppel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:12 PM   #5
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,116
mod_rewrite rocks

I'm curious, if you don't know how to use mod_rewrite, how else do you guys control your hotlinking?
fuzebox is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:12 PM   #6
hornycash
Confirmed User
 
Join Date: Jun 2002
Location: far beyond reality
Posts: 2,336
Quote:
Originally posted by - Jesus Christ -
"i figured it out"



You can do almost anything with mod_rewrite (except manupulate the contents of files)
its like a programming language.
i know. for me it's interesting for SE-Optimization.
i'll program PHP, Java, VB, VB.net & Perl for about 5
Years but never ever do something with mod_rewrite

im happy that it works and wanna share this with
other peoples who may have the same starting
problems... a chatboard can be helpful
hornycash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:14 PM   #7
Trafficbrokercom
Confirmed User
 
Join Date: Dec 2002
Posts: 542
http://www.engelschall.com/pw/apache/rewriteguide/
Trafficbrokercom is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:15 PM   #8
- Jesus Christ -
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
Quote:
Originally posted by hornycash


i know. for me it's interesting for SE-Optimization.
i'll program PHP, Java, VB, VB.net & Perl for about 5
Years but never ever do something with mod_rewrite

im happy that it works and wanna share this with
other peoples who may have the same starting
problems... a chatboard also can be helpful
Its hard stuff to learn. Defianlty glad you found a new tool. I just thougt it was funny how you said you figured out its big secret.
__________________

Amen
- Jesus Christ - is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:15 PM   #9
Weppel
Confirmed User
 
Join Date: Aug 2003
Location: Netherlands
Posts: 2,190
Quote:
Originally posted by Trafficbrokercom
http://www.engelschall.com/pw/apache/rewriteguide/
Gonna print that one for later reference, thanks.
Weppel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:16 PM   #10
Weppel
Confirmed User
 
Join Date: Aug 2003
Location: Netherlands
Posts: 2,190
Quote:
Originally posted by hornycash


i know. for me it's interesting for SE-Optimization.
i'll program PHP, Java, VB, VB.net & Perl for about 5
Years but never ever do something with mod_rewrite

im happy that it works and wanna share this with
other peoples who may have the same starting
problems... a chatboard can be helpful
What SE optimalisation can be done with mod_rewrite? Couldn't think of anything to be honest..
Weppel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:17 PM   #11
- Jesus Christ -
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
Quote:
Originally posted by Weppel


What SE optimalisation can be done with mod_rewrite? Couldn't think of anything to be honest..
Anytime you have a string with more than 2 variables most engines wont follow the link. It allows you to run scripts behind the illusion of everything being an html file.
__________________

Amen
- Jesus Christ - is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:22 PM   #12
hornycash
Confirmed User
 
Join Date: Jun 2002
Location: far beyond reality
Posts: 2,336
Quote:
Originally posted by Weppel


What SE optimalisation can be done with mod_rewrite? Couldn't think of anything to be honest..
ok, let's say you have a url like the following:

index.php?id=999&rid=2828&article=123asd

that's pretty shitty for Google. I have seen that sometimes
google index url's like the one above but google likes
static sites (probably with good content => content is god)

with mod_rewrite you can rewrite the url via .htaccess to
something like this:

index/999/2828/123asd.html


For this Example, the .htaccess should look like this:


Options +FollowSymLinks
RewriteEngine on
RewriteRule ^index/(.*)/(.*)/(.*).html /index.php?id=$1&rid=$2&article=$3


Now you can access the php file with index/999/2828/123asd.html
This is also good for using keywords in your url.
hornycash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:24 PM   #13
Weppel
Confirmed User
 
Join Date: Aug 2003
Location: Netherlands
Posts: 2,190
Quote:
Originally posted by hornycash


ok, let's say you have a url like the following:

index.php?id=999&rid=2828&article=123asd

that's pretty shitty for Google. I have seen that sometimes
google index url's like the one above but google likes
static sites (probably with good content => content is god)

with mod_rewrite you can rewrite the url via .htaccess to
something like this:

index/999/2828/123asd.html


For this Example, the .htaccess should look like this:


Options +FollowSymLinks
RewriteEngine on
RewriteRule ^index/(.*)/(.*)/(.*).html /index.php?id=$1&rid=$2&article=$3


Now you can access the php file with index/999/2828/123asd.html
That's some good stuff man..

But most of the work done can be done through PHP itself though..

What i mostly do is, i parse a html file as a php file. I insert php in the .html file, and there you go. Google thinks its a static page, but it isnt, it's dynamic.

Should get you a few positions higher
Weppel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:25 PM   #14
Weppel
Confirmed User
 
Join Date: Aug 2003
Location: Netherlands
Posts: 2,190
But seriously, i like that stuff. Will keep this thread in mind, and if you have more tutorials / info pages, gimme, and ill start reading through them
Weppel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:29 PM   #15
hornycash
Confirmed User
 
Join Date: Jun 2002
Location: far beyond reality
Posts: 2,336
Quote:
Originally posted by Weppel
But seriously, i like that stuff. Will keep this thread in mind, and if you have more tutorials / info pages, gimme, and ill start reading through them

hmm you'll say that you send all your html pages through
the parser? god damn, that's a lot of extra work for your
machine but....

let's say, in your html page is one database query.
you wanna select an article from your database
now you'll have to send the url like this

example.html?article=222

with mod_rewrite it would look like

example/222.html

even more SE friendly
hornycash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:36 PM   #16
SMG
Confirmed User
 
Join Date: Aug 2003
Posts: 1,798
I hate mod_rewrite

for the last 2 days my traffic on one site dropped to under 50% normal ... I couldnt figure out why, everyone could access the site, no problems whatsoever. I also noticed that it was specifically SE traffic that dropped, everything else was fine. I just found out that somehow ensim overwrote my custom modrewrite conf file so all my neat mod_rewrite tricks became 404s
__________________
TGP Webmasters: sign up for the top 100 tgp list!
Submit galleries
If you add me to icq (title) make sure to mention GFY or I'll think you're a bot and deny you.
SMG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:37 PM   #17
Trafficbrokercom
Confirmed User
 
Join Date: Dec 2002
Posts: 542
Quote:
Originally posted by hornycash


example.html?article=222

with mod_rewrite it would look like

example/222.html

be careful if you use mod_rewrite to do something like this with a session ID. someone has a patent on this method.
Trafficbrokercom is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 04:37 PM   #18
hornycash
Confirmed User
 
Join Date: Jun 2002
Location: far beyond reality
Posts: 2,336
Quote:
Originally posted by SMG
I hate mod_rewrite

for the last 2 days my traffic on one site dropped to under 50% normal ... I couldnt figure out why, everyone could access the site, no problems whatsoever. I also noticed that it was specifically SE traffic that dropped, everything else was fine. I just found out that somehow ensim overwrote my custom modrewrite conf file so all my neat mod_rewrite tricks became 404s
hmm that sucks. don't you have a backup?
hornycash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 05:04 PM   #19
init
Confirmed User
 
Join Date: Oct 2002
Location: Sarasota, FL
Posts: 973
Quote:
Originally posted by hornycash
Heya!

Yes, i got it mod_rewrite was one of the big secrets for me
but now, i figured it out and wanna share my new knowledge
(it's not really deep but enough to set up something) with you
guy's

so come on, let's share something
you should write a little informative tutorial with each command and a basic understanding and how to use it
__________________
icq: 2721653
init is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-23-2003, 07:19 PM   #20
Scherfi
Confirmed User
 
Join Date: Jun 2003
Location: PornStudio
Posts: 868
Quote:
Originally posted by Trafficbrokercom


be careful if you use mod_rewrite to do something like this with a session ID. someone has a patent on this method.
are you serious with this? what exactly is patentent of it?
__________________
http://www.fastthumber.com
Scherfi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.