Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

how to set default document sub-directory?


  • Please log in to reply

#1
jacobusmatthew

jacobusmatthew

    Member

  • Member
  • PipPipPip
  • 137 posts
Hey all, I was wondering if anyone could help me set a default document of a subdirectory, for instance: www.matthewjacobus.com/blog would automatically go to www.matthewjacobus.com/blog/blog.php , but would display www.matthewjacobus.com/blog in the address bar. I see this done all the time on websites, currently i have an additional dummy index.php file in each directory with a redirect pointing to these files, but im sure theres a better way. Also, going to the linking to the page is significantly faster than the redirect, so my method is clearly flawed.

thanks,
Matt
  • 0

Advertisements


#2
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Have you tried a <meta> tag redirect set to zero time on the www.matthewjacobus.com/blog page?

<meta http-equiv="Refresh" content="0; url=www.matthewjacobus.com/blog/blog.php">

Haven't used this in awhile and it may or may not show what you want in address bar. Might searc at w3c.org or Google for more info.

Ron
  • 0

#3
Supercalifragilistic

Supercalifragilistic

    Member

  • Member
  • PipPipPip
  • 404 posts
So, basically you want the website to treat "blog.php" as the main index file?

Can this not be done with htaccess?

Edited by Supercalifragilistic, 29 July 2007 - 06:21 PM.

  • 0

#4
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
As far as I know the .htaccess file should be able to be set up to do this. Might even be able to do it from the hosting CPanel as part of the tools provided.

Ron
  • 0

#5
jacobusmatthew

jacobusmatthew

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 137 posts
I have godaddy, Idk what they use, but when i signed up i chose windows, so idk if that eliminates apache, but i just tried creating a .htaccess file and in it i wrote
DirectoryIndex blog.php about.php projects.php media.php

I'm not sure if godaddy is apache as it didnt work, but also i probably did it wrong because i am a n00b.

Thanks,
Matt
  • 0

#6
Supercalifragilistic

Supercalifragilistic

    Member

  • Member
  • PipPipPip
  • 404 posts
I think Windows uses IIS. Is it a hosting plan, vps or dedi?
  • 0

#7
jacobusmatthew

jacobusmatthew

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 137 posts
I would consider it a hosting plan. As this is what i called it when i purchased it. Everything came pre-configured i did nothing to establish the server in any way.

i have iis on my local machine as a test server, and i can access these settings in admin settings under windows control panel, but idk how to do this using godaddy. they have a control panel but it lacks these features.

Edited by jacobusmatthew, 29 July 2007 - 10:02 PM.

  • 0

#8
Supercalifragilistic

Supercalifragilistic

    Member

  • Member
  • PipPipPip
  • 404 posts
Someone told me this, so I'm not sure (never used IIS)

Okay, on IIS, right click on your site and click properties. You can change it from one of the tabs.
  • 0

#9
jacobusmatthew

jacobusmatthew

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 137 posts
The control panel is web based so right clicking isn't possible.
  • 0

#10
jacobusmatthew

jacobusmatthew

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 137 posts
can anyone help me out?
  • 0

Advertisements


#11
Supercalifragilistic

Supercalifragilistic

    Member

  • Member
  • PipPipPip
  • 404 posts
Can you not send a support ticket to GoDaddy? They might be able to add something to a list like htaccess.
  • 0

#12
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
GoDaddy.com's Help Center

Ron
  • 0

#13
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
GoDaddy.com's Help Center

Ron
  • 0

#14
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
This is getting very tiring when server hangs and it winds up with multiple posts.

Ron

Edited by Major Payne, 03 August 2007 - 06:06 PM.

  • 0

#15
jacobusmatthew

jacobusmatthew

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 137 posts
o well, the first place i looked was the help center, I found out that i may need to upgrade my account, but in the meantime, I switched my server from windows to linux in hopes that .htaccess would work,

Thanks everyone for your time, I will post back if i succeed :whistling:

Matt

Edited by jacobusmatthew, 03 August 2007 - 06:24 PM.

  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP