![]() |
![]() |
![]() |
||||
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: 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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Feb 2003
Location: Bostonnnn
Posts: 8,985
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
making it rain
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,119
|
Quote:
![]() I've been using the method described on page 2 for a long time now, works great. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Jan 2003
Posts: 508
|
Quote:
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> |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Retired
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Apr 2003
Location: England
Posts: 378
|
cheers AdultNex
|
![]() |
![]() ![]() ![]() ![]() ![]() |