Jump to content


MOD Rewrite question


3 replies to this topic

#1 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 01 March 2006 - 05:58 PM

Say i have a folder called stuff on hosted on www.mydomain.com and a page which is after i mod_rewrote it, like mdomain.com/stuff. Now my question is, what would the apache redirect me to first? The folder or the file?

I hopeyou know what im talking about lol <_<

#2 FFX

    Young Padawan

  • Members
  • Pip
  • 105 posts

Posted 02 March 2006 - 02:31 PM

um i think I understand what your saying and when i tried it mine went to the actual folder, so im guessing the folder

#3 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 02 March 2006 - 06:20 PM

My suggestion would be to never have a file without an extension unless you have a good reason. If you have a good reason, don't name it the same as a folders name.

If worse comes to worse, adding a "/" to the end of the url WILL direct you to the folder. If you don't, i can only assume you'll be directed to the file, but the only real way to find out is to try it ^_^

#4 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 02 March 2006 - 06:22 PM

Yeah, i was going to try it, but was too lazy ^_^ so i thought id just ask it here :D

I WILL try it out sometimes :D





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users