Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [JavaScript][PHP] jak zrobić by do adresu www nie były dopisywane inne paramet
lucas307
post
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 10.08.2010

Ostrzeżenie: (0%)
-----


Witam, wykupiłem sobie domenę mojadomena.eu i mam następujący problem że do tego adresu dopisują się parametry
np: mojadomena.eu/index.php?par=gl
Jak zrobić by tego się pozbyć

Poniżej kod strony a dokładnie indexu

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Wojciech Białek</title>
  7. <meta http-equiv="Reply-to" content="" />
  8. <meta name="Description" content="opis strony" />
  9. <meta name="keywords" content= />
  10. <meta name="Author" content="Lucas" />
  11. <meta name="Robots" content="ALL" />
  12. <meta name="revisit-after" content="10" />
  13. <link rel="stylesheet" type="text/css" href="style.css" />
  14. </head>
  15. <body>
  16. <div class="pds">
  17. <div><img src="images/t1.jpg" alt="" /></div>
  18. <div class="nav">
  19. <div class="table">
  20.  
  21. <ul class="select"><li><a href="index.php?par=gl"><b>Strona główna</b>
  22. </a></li></ul>
  23.  
  24. <ul class="select"><li><a href="index.php?par=of"><b>O firmie</b>
  25. </a></li></ul>
  26.  
  27. <ul class="select"><li><a href=""><b>Oferta</b><!--[if IE 7]><!--></a><!--<![endif]-->
  28. <!--[if lte IE 6]><table><tr><td><![endif]-->
  29. <div class="select_sub show">
  30. <ul class="sub">
  31. <li><a href="index.php?par=ort">Cennik ogólny</a></li>
  32. <li><a href="#nogo">Budowa domu od podstaw</a></li>
  33. <li><a href="#nogo">Wykończenie wnętrz</a></li>
  34. <li><a href="#nogo">Malowanie biur</a></li>
  35. <li><a href="#nogo">Aranżacja wnętrz</a></li>
  36. </ul>
  37. </div>
  38. <!--[if lte IE 6]></td></tr></table></a><![endif]-->
  39. </li>
  40. </ul>
  41.  
  42.  
  43. <ul class="select"><li><a href="gal/index.php"><b>Zrealizowane</b><!--[if IE 7]><!--></a><!--<![endif]-->
  44. <!--[if lte IE 6]><table><tr><td><![endif]-->
  45. <div class="select_sub">
  46. <ul class="sub">
  47. <li><a href="#nogo">W trakcjie realizacji</a></li>
  48. <li><a href="gal/index.php">Zrealizowane projekty</a></li>
  49. </ul>
  50. </div>
  51. <!--[if lte IE 6]></td></tr></table></a><![endif]-->
  52. </li>
  53. </ul>
  54. <ul class="select"><li><a href="index.php?par=knt"><b>Kontakt</b><!--[if IE 7]><!--></a><!--<![endif]-->
  55. <!--[if lte IE 6]><table><tr><td><![endif]-->
  56. <div class="select_sub">
  57. <ul class="sub">
  58. <li><a href="#nogo">Lokalizacja</a></li>
  59. <li><a href="index.php?par=knt">Kontakt</a></li>
  60. </ul>
  61. </div>
  62. <!--[if lte IE 6]></td></tr></table></a><![endif]-->
  63. </li>
  64. </ul>
  65.  
  66. </div>
  67. </div>
  68. <div class="s">
  69. <div class="right">
  70. <? if($_GET["par"]=="") include("gl.php"); if($_GET["par"]==gl) include("gl.php"); if($_GET["par"]==of) include("of.php"); if($_GET["par"]==ort) include("ort.php"); if($_GET["par"]==knt) include("knt.php");
  71. ?>
  72. </div>
  73. <div style="clear:both"></div>
  74. </div>
  75. <div class="stopka"><img src="images/stopka.jpg" alt="" /></div>
  76. </div>
  77. </body>
  78. </html>


Ten post edytował lucas307 10.08.2010, 14:12:33
Go to the top of the page
+Quote Post
flashdev
post
Post #2





Grupa: Zarejestrowani
Postów: 812
Pomógł: 117
Dołączył: 2.12.2008

Ostrzeżenie: (10%)
X----


Od parametru zależy jaka strona się załaduje.
Możesz użyć mod rewrite, żeby zastosować przyjazne url`e. Lub jest jeszcze możliwość wrzucenia całej strony do jednej ramki, tylko to nie jest najlepsze rozwiązanie, choćby dlatego, że nie będzie można skopiować bezposredniego adresu do danej podstrony.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 8.10.2025 - 20:51