Reply
A Couple Of Beginner QUestions
Old 08-09-2009, 02:14 PM A Couple Of Beginner QUestions
Experienced Talker

Posts: 30
Trades: 0
I have a shared hosting plan with hostgator. This is my first time setting up a website so I have a few questions.

First and foremost, I keep reading about things I can/need to do with a htaccess file. Is this something I just create in a text editor and place in my web directory or should I be able to access this somewhere in cPanel or the file manager?

How do I configure my error pages like 404 for when a user enters a url on my domain that doesn't exist? Do I have to activate something in cPanel or put something in an htaccess file? Currently, if I go to: www.domain.com/madeupnonexistentpage.html, all I see is a blank page rather than an error screen.

Also, I read for SEO purposes I want to direct all traffic to either domain.com or www.domain.com with a 301 direct. However, on hostgator (my hosting company) I read somewhere that it said I can't use a regular 301 direct as it will put my site in a permanent loop...so what do I need to do? Also, which is more preferable domain.com or www.domain.com

I see in the file manager where I upload all of my pages that I have the option to compress files. I obviously want to optimize the performance of the site so would it be beneficial to compress any pages or images and if so, what format?

Lastly, I built a small mobile site on a sub-domain that I want hand held devices to be redirected to when they browse to my main home page. I did some research and came across Wurfl but have no idea how to actually implement it.

Any help would be greatly appreciated.
samo1215 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 08-10-2009, 06:44 PM Re: A Couple Of Beginner QUestions
Experienced Talker

Posts: 30
Trades: 0
Anybody?
samo1215 is offline
Reply With Quote
View Public Profile
 
Old 08-10-2009, 06:49 PM Re: A Couple Of Beginner QUestions
chrishirst's Avatar
Super Moderator

Posts: 22,260
Location: Blackpool. UK
Trades: 0
linux or windows hosting first of all?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-10-2009, 11:07 PM Re: A Couple Of Beginner QUestions
Experienced Talker

Posts: 30
Trades: 0
It's linux and I'm using cPanel.
samo1215 is offline
Reply With Quote
View Public Profile
 
Old 08-11-2009, 03:50 PM Re: A Couple Of Beginner QUestions
Average Talker

Posts: 16
Trades: 0
Quote:
Originally Posted by samo1215 View Post
First and foremost, I keep reading about things I can/need to do with a htaccess file. Is this something I just create in a text editor and place in my web directory or should I be able to access this somewhere in cPanel or the file manager?
No just make it in a text editor and upload it. As long as it's called '.htaccess' it's rules apply to all files and directories in the directory it's in and the subdirectory.
Quote:
How do I configure my error pages like 404 for when a user enters a url on my domain that doesn't exist? Do I have to activate something in cPanel or put something in an htaccess file? Currently, if I go to: www.domain.com/madeupnonexistentpage.html, all I see is a blank page rather than an error screen.
Stick this in you .htaccess ErrorDocument 404 http://www.yourpage.com/custom404.html
Quote:
Also, I read for SEO purposes I want to direct all traffic to either domain.com or www.domain.com with a 301 direct. However, on hostgator (my hosting company) I read somewhere that it said I can't use a regular 301 direct as it will put my site in a permanent loop...so what do I need to do? Also, which is more preferable domain.com or www.domain.com
No idea.
Quote:
I see in the file manager where I upload all of my pages that I have the option to compress files. I obviously want to optimize the performance of the site so would it be beneficial to compress any pages or images and if so, what format?
No. I'm pretty sure that's like making a zip, or rar, or tar archive. It's just for storing it or transporting it.
Quote:
Lastly, I built a small mobile site on a sub-domain that I want hand held devices to be redirected to when they browse to my main home page. I did some research and came across Wurfl but have no idea how to actually implement it.
Wurlfl is an XML file that I guess you'll have to parse. Use php or whatever script you're using to detect the useragent of the users browser, compare it to those in that XML file, if it's in there then redirect to your mobile version. More info here: http://wurfl.sourceforge.net/help_doc.php

Now that I've helped you I want you to learn something for me. Every time you don't know something go to google.com, stick your thoughts into the search bar and click search. The answers will be immediatley avalible for you.
For example
First result from a Google search for .htaccess is Apache Tuturial: .htaccess files
Nill is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to A Couple Of Beginner QUestions
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.13224 seconds with 13 queries