![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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 ![]() 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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Aug 2003
Location: Netherlands
Posts: 2,190
|
Show me, i'm always willing to learn
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
making it rain
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Jun 2002
Location: far beyond reality
Posts: 2,336
|
Quote:
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 ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Dec 2002
Posts: 542
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
|
Quote:
![]()
__________________
Amen |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Aug 2003
Location: Netherlands
Posts: 2,190
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Aug 2003
Location: Netherlands
Posts: 2,190
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
|
Quote:
__________________
Amen |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Join Date: Jun 2002
Location: far beyond reality
Posts: 2,336
|
Quote:
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Aug 2003
Location: Netherlands
Posts: 2,190
|
Quote:
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 ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
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
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Confirmed User
Join Date: Jun 2002
Location: far beyond reality
Posts: 2,336
|
Quote:
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 ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 | |
Confirmed User
Join Date: Dec 2002
Posts: 542
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 | |
Confirmed User
Join Date: Jun 2002
Location: far beyond reality
Posts: 2,336
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 | |
Confirmed User
Join Date: Oct 2002
Location: Sarasota, FL
Posts: 973
|
Quote:
![]()
__________________
icq: 2721653 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 | |
Confirmed User
Join Date: Jun 2003
Location: PornStudio
Posts: 868
|
Quote:
__________________
http://www.fastthumber.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |