View previous topic :: View next topic |
Author |
Message |
Atavistic
Joined: 22 May 2006 Location: How totally stupid that Korean doesn't show in this area.
|
Posted: Fri Dec 14, 2007 2:50 pm Post subject: Help me tell my website what to do. Please. SSI/shtml... |
|
|
I have no idea what the correct terms are, so I'm going to try and explain this as much as I can.
Most of my pages are .shtml because I'm doing SSI. Because I designed my website like this from the beginning, I have NOT changed me .htaccess file to parse, yadda yadda. Fine. No problem.
But it used to be that if you went to www.mywebsitenamehere.com/gallery or /list or /whatever, it would automatically go to /whatever.shtml without displaying that in the browser bar. I could link just to /whatever and it was fine, it would find it. Now, for some reason, I must link to /whatever.shtml and that ugliness shows up in the browser bar.
A) Does anyone understand what I'm saying and b) does anyone know how to fix it?
I am looking for either
something that sort of says "OK, folks, if we find a /file, look for /file.html first and if that doesn't exist then look for /file.shtml and if that doesn't exist then look for /file.htm and if that doesn't exist then..."
OR
something that permanently redirects all /file to /file.shtml WITHOUT me having to manually write a redirect for every file on my site.
I DO have access to the .htaccess file.
Anyone? Please?  |
|
Back to top |
|
 |
jeffkim1972
Joined: 10 Jan 2007 Location: Mokpo
|
Posted: Sat Dec 15, 2007 4:58 pm Post subject: |
|
|
Atavistic,
post your
.htaccess
and
httpd.conf
files, let's take a look. |
|
Back to top |
|
 |
ttompatz

Joined: 05 Sep 2005 Location: Kwangju, South Korea
|
Posted: Sat Dec 15, 2007 5:48 pm Post subject: |
|
|
jeffkim1972 wrote: |
Atavistic,
post your
.htaccess
and
httpd.conf
files, let's take a look. |
It might also be in the server config.ini file (depending on what O/S and server software he is using).
From his brief and incomplete description, he wants to change/add to the acceptable default file name list and that would be in the server config file. |
|
Back to top |
|
 |
tfunk

Joined: 12 Aug 2006 Location: Dublin, Ireland
|
Posted: Sun Dec 16, 2007 6:34 am Post subject: |
|
|
If you are using apache then make sure you have mod_rewrite enabled (phpinfo(); will tell you what's enabled)and then study up the Apache RewriteCond and RewriteRule directives (if you want to edit .htacess which is probably likely if you aren't running your own server).
Google 'friendly urls'.
I found this but didn't have time to review it:
http://www.phpriot.com/d/articles/php/application-design/search-engine-urls/index.html |
|
Back to top |
|
 |
The King of Kwangju

Joined: 10 Feb 2003 Location: New York City
|
|
Back to top |
|
 |
|