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 12-28-2003, 02:51 PM   #1
cj-design
Confirmed User
 
Join Date: Apr 2003
Location: England
Posts: 378
URL Cleanup (&, ? to / )

Hi,

Sites like amazon have what look like static pages for example:

http://www.amazon.co.uk/exec/obidos/...268978-5527820

but these pages are infact dynamic as amazon has some sort of rewrite module installed to convert the /'s to & (variables).

If I wanted to change my PHP pages in this way using apache, how would I do it?

From this:

http://www.mysite.com/?page=articles...002&date=today

to this:

www.mysite.com/page=articles/id=10002/date=today

cj-design is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-28-2003, 02:59 PM   #2
AdultNex
Confirmed User
 
Join Date: Feb 2003
Location: Bostonnnn
Posts: 8,985
http://www.sitepoint.com/article/485
AdultNex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-28-2003, 03:02 PM   #3
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,119
Quote:
Originally posted by AdultNex
http://www.sitepoint.com/article/485


I've been using the method described on page 2 for a long time now, works great.
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-28-2003, 03:03 PM   #4
pornanza
Confirmed User
 
Join Date: Jul 2003
Location: East Village
Posts: 238
you need to use mod_rewrite

place a .htaccess file in the directory, generally the root directory.

.htaccess
--------------------------

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]

RewriteRule ^([0-9a-z]+)/?$ index.php?variable=$1 [L]


is a basic example anything in the () that matches the regular expression is placed in $1, if you have another () then $2 will exist

take a look at http://httpd.apache.org/docs/misc/rewriteguide.html

i'm still pretty new to it, so i hope this all makes sense

hope it helps

ryan
__________________
Eskimo Hoe
QuickWank
Pornanza!
pornanza is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-29-2003, 02:38 AM   #5
smproduction
Confirmed User
 
Join Date: Jan 2003
Posts: 508
Quote:
Originally posted by AdultNex
http://www.sitepoint.com/article/485

It seems to work in my tests, thank you
__________________
<a href="http://www.wishing.com/money/"><img src="http://www.wishing.com/money/promotools/referrals/bannerset2/wishing_affiliate_120x60_06.gif" border="0"><br><font face="Verdana, Arial" size="2"><b>Wishing.com</b>- Make over <b>$100.00</b> per sale with pills and patches</font></a>
smproduction is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-29-2003, 02:43 AM   #6
Mr Pheer
Retired
 
Mr Pheer's Avatar
 
Industry Role:
Join Date: Dec 2002
Posts: 21,264
hmm... that could be real useful for google....

now the rocks in my head are bangin together....
__________________
2 lifeguards for Jessica
Mr Pheer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-29-2003, 05:23 PM   #7
cj-design
Confirmed User
 
Join Date: Apr 2003
Location: England
Posts: 378
cheers AdultNex
cj-design 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.