Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

4 Neutral

About SaranacLake

  • Rank
    Prolific Member

Profile Information

  • Gender
  • Location
    New York
  • Age

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. If I recall correctly, you could just insert a 'dummy" index.php file in every directory, right? Currently I have this code in my .htaccess in the public_html folder... Options -Indexes ErrorDocument 403 "/utilities/access-denied.php" Shouldn't that first line of code have prevented getting a directory listing like I was seeing when i renamed "index.php" to "news-index.php"? And wouldn't that second line handle the 403 error if I made whatever change I need to not require the "index.php" as the default file in every directory? I h
  2. @requinix, You posted in the wrong thread! (And I replied in the wrong thread too!) *LOL* Back to tis thread, it sounds like I included my < head > code the correct way.
  3. Well, for now, I'll just leave things as is - I have this thing for "pretty URLs", but whatever. If I hover, I think I can see the path, but its just a pain when you have 25 tabs open - which i usually do.
  4. Again, this is for my *temporary* website so I can get content onine while I finish (and fix) my larger "real" website. The goal is to make my temporary website EASY to develop, and I have decided that having a half-a-dozen directories all with "index.php" is confusing. So how can I tell MAMP that if a directory doesn't have an "index.php" file in it, then that is okay?
  5. It seems to work okay for the last few days, and my web pages pass the W3C validator. But when I staretd this thread, i wasn't sure if it was correct or not. (I hate writing crappy code?!)
  6. A-ha... So I think you are saying that my instance of MAMP is expecting that every directory has an "index.php" file in it? Can I disable that feature? I understand your suggestion to have all of my files be "index.php", but as mentioned, it makes working with them in NetBeans to be a pain. And the last thing I need to to spend a bunch of time updating a file only to find out it is the wrong "index.php"?! (Once I get my "real" website up and running, this is less of an issue since that one is database driven. But for my temproary site, I am just using straight-up hard-cod
  7. In index.php I have... <?php $htmlTitle = "My page specific title here"; ?> <!DOCTYPE HTML> <html lang="en"> <?php require_once('../../coponents/html_head.php'); ?> and so on... And then in my "head_html.php" file I have... <head> <meta blah blah? <title><?php echo (isset($htmlTitle) ? $htmlTitle : "DEFAULT_TEXT_HERE") ?></title> <link blah blah> </head> So is that okay?
  8. I had started to do that, but realized it was really confusing when I had several tabs open in NetBeans that all said "index.php" So what was wrong with my mod_rewrite above?
  9. In the past I had the following code to remove the "index.php" portion of a URL to transform this "www.domain.com/index.php" to this "www.domain.com/" This is what I used... RewriteCond %{REQUEST_URI} ^.*/index\.php RewriteRule ^(.*)index.php$ $1 [L,R=301] This seemed to work okay, but ow i have expanded my temporary website. Now I have the following set up... www.company.com/index.php www.company.com/news/news-index.php www.company.com/news/economy/economy-index.php What I want in the address bar is this... www.comp
  10. I wasn't sure if including my html_head.php file would work, because that file has this line of code... <title><?php echo (isset($htmlTitle) ? $htmlTitle : HTML_TITLE_DEFAULT) ?></title> So I wasn't sure if that would be considered "recursive" and break things, since you are including the file using PHP and then calling PHP from within that file to echo something.
  11. I am working on a temporary mobile site while I try and fix my main site. As I do this, I am trying to look at better ways to code. Is there any problem/danger to including the HTML Head? Since this block of code repeats - except for the < title > - I figure why code it multiple times. I was thinking of using an INCLUDE on this... <head> <!-- METADATA --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width", height="device-height", initial-scale=1> <!-- TITLE --> <title>$tit
  12. Let me rephrase what I was asking. If this was my website being listed in Google.... And let's say that I changed where "History of Basketball" was physically listed in my public_html folder, and thus the URL would change, would that end up changing how the search results (like abive) looked, and would it hurt where my website or web page ranked in Google? If the example above wouldn't change, but when you clicked on "History of Basketball", then nothing lost. But if by re0organizing my site, if that hurt my website's page rank or even changed how the sea
  13. Do you know if the Google listing will remain the same (i.e. same search description) and the only thing that will change are the links that people are taken to? Or will Google treat the new page like an entirely new entry? I am trying to plan things out so they don't change, but you can't always make things entirely scalable.
  14. So if I re-organize things, then just create an entry in my .htaccess file and that will solve things? Will Google penalize me for changing things around?
  • 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.