Forum Moderators: phranque

Message Too Old, No Replies

Help with htaccess file

         

golfgod04

1:25 pm on May 22, 2012 (gmt 0)

10+ Year Member



Hi, I have never created an htaccess file before. I use polurnet as my webhost and have a few domains/subdomains with them. I just created a new website and can't get any of my images to show up on the website as well as getting my form to work. The customer support staff at polurnet said I need to create an htaccess file for that website.

I used file extension htm instead of html
my image folder is named img
I have a php file in my folder but the form is located contact.htm

does any have some information that can help me? thank you very much in advance.

g1smd

1:35 pm on May 22, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



need to create an htaccess file for that website

and what exactly is this file supposed to "do" for you?

Make sure you link to your images beginning with a leading slash. Do not use relative links and do not use the href="../../something" notation.

golfgod04

1:44 pm on May 22, 2012 (gmt 0)

10+ Year Member



The htacess file is supposed to let visitors to the websites access to img folder

Polurnet's customer service says that the htaccess file will give people permission to execute the php form. Is that true? I've never made an htaccess file before

golfgod04

1:56 pm on May 22, 2012 (gmt 0)

10+ Year Member



I just went through and changed all the .htm files to .html and change the img folder to images just like a normal website. Yet, none of the images are showing up. It says I dont have permission to those files

lucy24

10:47 pm on May 22, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It says I dont have permission to those files

When you say "It", what do you mean? Who gets the message, and under what circumstances?

Web pages don't put up error messages for missing or inaccessible images. They just display a placeholder, like a little x or question mark.

You need to distinguish between what you, as webmaster, see when you ftp into your various folders, and what the visitor (who might happen to be you) sees when they browse the site.

What is the difference between your existing domain and your other domains?