|
Marketing i SEO Marketing tehnike i Search Engine Optimization |
|
Alati teme | Način prikaza |
|
02. 08. 2005. | #1 |
Nikola Denić
Sir Write-a-Lot
|
pa generalno je ovo bolje mada imas i ovaj fazon
PHP kôd:
__________________
Do not ask yourself what the world needs. Ask yourself what makes you come alive, and then go do that. Because what the world needs is people who have come alive Poslednja izmena od nixa : 03. 08. 2005. u 02:45. |
02. 08. 2005. | #2 |
Moderator
Wrote a book
Datum učlanjenja: 09.06.2005
Lokacija: Beograd
Poruke: 1.165
Hvala: 71
175 "Hvala" u 58 poruka
|
Nixa, hvala na odgovoru.
|
13. 08. 2005. | #3 |
Banned
Knowledge base
Datum učlanjenja: 01.07.2005
Poruke: 1.598
Hvala: 206
140 "Hvala" u 89 poruka
|
cccc nixa nixa... kada postujes tudji kod makar budi siguran da si postovao najnoviju verziju :P a takodje bi bilo lepo da das credit za to :P
Kôd:
function seoDomain($defaultPage = 'index.php') { $rest = $reqUri = array(); $loc = 'http://'; $reqUri = explode('/', $_SERVER['REQUEST_URI']); $rest = explode('.', $_SERVER['HTTP_HOST']); if ($rest[0] == 'www') { unset($rest[0]); $loc .= implode('.', $rest); } else { $loc .= $_SERVER['HTTP_HOST']; } if(end($reqUri) == $defaultPage) { /* since you're unsetting $reqUri[0], count($reqUri) will actually be (count($reqUri) -1) at this point */ unset($reqUri[0], $reqUri[count($reqUri)]); $loc .= (!empty($reqUri)) ? '/' . implode('/', $reqUri) . '/' : '/'; } else { $loc .= $_SERVER['REQUEST_URI']; } return $loc; } header("HTTP/1.1 301 Moved Permanently"); header('Location:' . seoDomain()); |
13. 08. 2005. | #4 |
Dejan Katašić
Wrote a book
Datum učlanjenja: 10.06.2005
Lokacija: Novi Sad
Poruke: 1.017
Hvala: 129
86 "Hvala" u 43 poruka
|
e... nixa... plagijatoru jedan, dva, tri... srami se :-p)))
|
13. 08. 2005. | #5 |
Nikola Denić
Sir Write-a-Lot
|
e bolja ti nova funcija .. a mrzelo me da trazim link imao sam to na hdd
__________________
Do not ask yourself what the world needs. Ask yourself what makes you come alive, and then go do that. Because what the world needs is people who have come alive |
|
|
Slične teme | ||||
Tema | Početna poruka teme | Forum | Odgovori | Poslednja poruka |
Redirekcija sa phpBB na IPB | ljtruba | Regular expression i htaccess | 4 | 26. 12. 2010. 14:38 |
DDoS redirekcija? | LiquidBrain | Web Hosting, web serveri i operativni sistemi | 9 | 06. 08. 2008. 11:43 |
non-www -> www i odmah redirekcija dalje... | blackshtef | Regular expression i htaccess | 4 | 25. 07. 2008. 19:01 |
redirekcija i SEO | SqlByte | Marketing i SEO | 5 | 22. 01. 2007. 02:53 |
.htaccess redirekcija | Mr.Paja | Regular expression i htaccess | 15 | 03. 04. 2006. 12:38 |