![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Are absolute paths still preferred over dynamic links (example.html?example=this) ? I was considering straining my brain to figure out mod-rewrite if this is the case. -- William Edsall |
#3
| |||
| |||
|
|
"William Edsall" <wedsall (AT) backbonenow (DOT) com> wrote in message news:vm3rbscdssks16 (AT) corp (DOT) supernews.com... Are absolute paths still preferred over dynamic links (example.html?example=this) ? I was considering straining my brain to figure out mod-rewrite if this is the case. regardless of search engines, it's easier for humans to remember! for some of my escort sites - what looks betteR? http://www.domain.com/escorts.php?ty...=1234&name=tom or www.domain.com/lads/tom i know which one the human visitors will remember! |
#4
| |||
| |||
|
|
"William Edsall" <wedsall (AT) backbonenow (DOT) com> wrote in message news:vmbj33kkhgn40f (AT) corp (DOT) supernews.com... Cool, I agree and see your points. I've surfed through apache's documentation on mod-rewrite for hours and havent had luck. Could anyone show me an example of how it should be done? sure make a file called ".htaccess" with this in it: RewriteEngine on RewriteRule ^([0-9]+).*$ /where.php?id=$1 RewriteRule ^lads/([^/]+).*$ /showlad/lads.php?id=$1 The first line turns the Rewrite on The second line says that were the www.url.com/12 (ie url then number) happens, move the number to where.php and call the number the variable id - so it's the same as www.url.com/where.php?id=12 The third line is the same as the second, but starting at www.url.com/lads/name to www.url.com/showlad/lads.php?id=name Hope this helps! Joe |
![]() |
| Thread Tools | |
| Display Modes | |
| |