Jump to content

ryanclemens

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ryanclemens's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. yeah it worked fine the first time I uploaded it to the server, but then I made some more changes and now it only works on the older stuff.  not any of the new things I put on it. example. I had /beta.php  rewrite to /beta/ and then I added /packages.php rewrite to /packages/ and the packages one doesn't work but the beta one still does.
  2. That is what I thought also, but that is the only thing I can think of for the reason why the new command aren't working, when they work fine on another server.
  3. I have made some changes to my .htaccess file and those changes are not showing up only the old changes. I tried the file on another website I use and they work fine.  they are rewrite codes. I was wondering if there is a setting or a step I am missing that keeps the server from looking at the new codes. the website is hosted by godaddy.com  I am not sure if that has anything to do with it. but when I first uploaded the .htaccess file it worked fine but then I made changes and those new changes are not showing up. I am new to this, please any help would be great... just let me know what you need.
  4. I have moved this post to the apache section. Thank you. Ryan
  5. I made some mods to an already made .htaccess and it worked fine. then I went back and tried to make some more and they are not working. /packages/ is not working but /tester/ is working fine. I am new to this so I just copied and changed some names, it worked fine the first time but not anymore. here is the code that I am using. [code] RewriteEngine on RewriteBase  / RewriteRule ^sleep$ /sleep/ [R] RewriteRule ^sleep/$ sleep.php RewriteRule ^groups$ /groups/ [R] RewriteRule ^groups/$ groups.php RewriteRule ^reserve$ /reserve/ [R] RewriteRule ^reserve/$ reserve.php RewriteRule ^play$ /play/ [R] RewriteRule ^play/$ play.php RewriteRule ^eat$ /play/ [R] RewriteRule ^eat/$ /play/ [R] RewriteRule ^consume$ /play/ [R] RewriteRule ^consume/$ /play/ [R] RewriteRule ^connect$ / [R] RewriteRule ^connect/$ / [R] RewriteRule ^deals$ /deals/ [R] RewriteRule ^deals/$ deals.php RewriteRule ^buzz$ /buzz/ [R] RewriteRule ^buzz/$ buzz.php RewriteRule ^see$ /see/ [R] RewriteRule ^see/$ see.php RewriteRule ^beta$ /beta/ [R] RewriteRule ^beta/$ beta.php RewriteRule ^contact$ /contact/ [R] RewriteRule ^contact/$ contact.php RewriteRule ^packages$ /packages/ [R] RewriteRule ^packages/$ packages.php RewriteRule ^tester$ /tester/ [R] RewriteRule ^tester/$ tester.php [/code] Please any help would be great!
  6. ok so I got the .htaccess file and made some changes and then uploaded it to the server... everything was working fine, then I made some more changes and now those don't work. the changes I made before work fine but not the new ones. here is the code. the /packages/ doesn't work for me. [code] RewriteEngine on RewriteBase  / RewriteRule ^sleep$ /sleep/ [R] RewriteRule ^sleep/$ sleep.php RewriteRule ^groups$ /groups/ [R] RewriteRule ^groups/$ groups.php RewriteRule ^reserve$ /reserve/ [R] RewriteRule ^reserve/$ reserve.php RewriteRule ^play$ /play/ [R] RewriteRule ^play/$ play.php RewriteRule ^eat$ /play/ [R] RewriteRule ^eat/$ /play/ [R] RewriteRule ^consume$ /play/ [R] RewriteRule ^consume/$ /play/ [R] RewriteRule ^connect$ / [R] RewriteRule ^connect/$ / [R] RewriteRule ^deals$ /deals/ [R] RewriteRule ^deals/$ deals.php RewriteRule ^buzz$ /buzz/ [R] RewriteRule ^buzz/$ buzz.php RewriteRule ^see$ /see/ [R] RewriteRule ^see/$ see.php RewriteRule ^beta$ /beta/ [R] RewriteRule ^beta/$ beta.php RewriteRule ^contact$ /contact/ [R] RewriteRule ^contact/$ contact.php RewriteRule ^packages$ /packages/ [R] RewriteRule ^packages/$ packages.php RewriteRule ^tester$ /tester/ [R] RewriteRule ^tester/$ tester.php [/code] this is the same format I used when I first made some mods and it worked fine.  I copied this from another site I was working on. Please help!!  this has been at me for about 5 days now.
  7. Thank you,  I just figured that part out. but thank you all for your help!!
  8. that is what I thought also, but that link is just for the Home page  "index.php" the but others in the code /reserve/ and what not actually link to reserve.php so how does that happen? [code]<li id="reserve"><a href="/reserve/" title="Get a room!">Reserve</a></li> <li id="groups"><a href="/groups/" title="Group Packages">Groups</a></li> <li id="play"><a href="/play/" title="Have a good time">Play</a></li> <li id="deals"><a href="/deals/" title="Learn about hot deals.">Deals</a></li> <li id="buzz"><a href="/buzz/" title="Read about Jupiter Hotel's buzz.">Buzz</a></li>[/code] all those actually link to there php page and not a folder.
  9. Hello, I am new to this forum and to PHP. I have a code that I got but I can't get it to call the correct page.  I am not sure if there is a special code that I have to put on the page that I am trying to call or what. here is the code that I have for my Nav. I have the page "see.php" loaded in the root folder. and for this page I just copied what was already used for the other pages and just added a movie. but when I use /see/  it doesn't find the page. Like I said I am super new at PHP but I really want to learn. please let me know if you need more. Thank you [code]<?php $menu = <<<MENU <div id="mn"> <ul id="menu"> <li id="home"><a href="/" title="Welcome to the Jupiter Hotel.">Home</a></li> <li id="reserve"><a href="/reserve/" title="Get a room!">Reserve</a></li> <li id="groups"><a href="/groups/" title="Group Packages">Groups</a></li> <li id="play"><a href="/play/" title="Have a good time">Play</a></li> <li id="deals"><a href="/deals/" title="Learn about hot deals.">Deals</a></li> <li id="buzz"><a href="/buzz/" title="Read about Jupiter Hotel's buzz.">Buzz</a></li> <li id="gallery"><a href="/see/" title="View images.">Gallery</a></li> </ul> </div> MENU; // adds id="active" to the active menu item by matching the url // code from: http://photomatt.net/scripts/intellimenu $lines = split("\n", $menu); foreach ($lines as $line) {     $current = false;     preg_match('/href="([^"]+)"/', $line, $url);     if (substr($_SERVER["REQUEST_URI"], 0, 5) == substr($url[1], 0, 5)) {         $line = str_replace('<a h', '<a id="active" h', $line);         }     echo $line."\n"; } ?>[/code] Here is also the code to the see.php page [code]<?php $page_title = "Word on the street"; ?> <?php include("_php/page_open.php"); ?> <script type="text/javascript" src="/_js/prototype.js"></script> <script type="text/javascript" src="/_js/scriptaculous.js?load=effects"></script> <script type="text/javascript" src="/_js/lightbox.js"></script> <link rel="stylesheet" href="/_c/lightbox.css" type="text/css" media="screen" /> <div id="content"> <div id="left"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="263" height="396" align="middle" class="greyborder"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="_swf/gallery_slideshow.swf" wmode="transparent" /> <param name="quality" value="high" wmode="transparent"/> <param name="bgcolor" value="#cccccc" wmode="transparent"/> <embed wmode="transparent" src="_swf/gallery_slideshow.swf" quality="high" bgcolor="#cccccc" width="263" height="396" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </embed> </object> </div> <div id="right_gal"> <h2 class="chiller">Your eyes will thank you. </h2>   <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="320" height="240" class="greyborder">     <param name="movie" value="_videos/tripfilm.swf" />     <param name="quality" value="high" />     <embed src="_videos/tripfilm.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="320" height="240"></embed>   </object>   <br />     <span style="font-style: italic; font-size: x-small;">Video may take a minute to load...</span></p>       <p>&nbsp;      </p>       <p>    <strong>g a l l e r y :</strong> <a href="http://jupiterhotel.blogspot.com/" target="_blank">Let your eyes have some fun</a> </p> <p>&nbsp;</p> </div> </div> </div> <?php include("_php/page_close_see.php"); ?>[/code]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.