Help with XSitePro- And Building my Website

Discussion in 'HTML & Website Design' started by ac3_spad3s, Sep 19, 2007.

  1. #1
    Ok, I bought the website builder program XSitePro, and after finishing a couple of webpages I now want to publish it on my website. Ok, well I entered the correct FTP user name and password, and then clicked published. Nothing happens. I then saved the file and opened up one of my FTP programs and FTP'd to my website. I have tried many places to put the saved file in but am not sure which directory to put it in. I am a newb at creating websites so I need help ASAP. The website I want to build is an add-on domain, so is there anywhere specific I have to put the file? Same with XSitePro, when I log into my domain(not the add-on) am I supposed to say where the directory is on XSitePro? Ok, if you don't understand what I am trying to say, please PM me. Thanks!
     
    ac3_spad3s, Sep 19, 2007 IP
  2. Xavier_3D

    Xavier_3D Well-Known Member

    Messages:
    1,299
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    140
    #2
    The Website Pages go in the Public_HTML Directory in your Web Hosting. The Publish command should do that on its own. Make sure you can connect to your FTP via the Software, It should atleast state a Login Stature. You can use the Online File Manager if your FTP is creating Issues, Simply Copy all the Files and the Stored Associated Images in the Public_HTML Directory. Then if your main page is other than Index.html, create a Redirection to your other Page in the Index.html. I'll give you a Redirection script if you want.
     
    Xavier_3D, Sep 19, 2007 IP
  3. ac3_spad3s

    ac3_spad3s Well-Known Member

    Messages:
    1,927
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    140
    #3
    That would be great and well appreciated! Please send it. Thanks!
     
    ac3_spad3s, Sep 19, 2007 IP
  4. Xavier_3D

    Xavier_3D Well-Known Member

    Messages:
    1,299
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    140
    #4
    
    <?php
    header( 'Location: [URL]http://www.yoursite.com/new_page.html'[/URL] ) ;
    ?>
    
    Code (markup):
    Resources Below from : http://www.isitebuild.com/301-redirect.htm

    How to implement the 301 Redirect

    1. To create a .htaccess file, open notepad, name and save
    the file as .htaccess (there is no extension).
    2. If you already have a .htaccess file on your server,
    download it to your desktop for editing.
    3. Place this code in your .htaccess file:
    redirect 301 /old/old.htm http://www.you.com/new.htm
    4. If the .htaccess file already has lines of code in it,
    skip a line, then add the above code.
    5. Save the .htaccess file
    6. Upload this file to the root folder of your server.

    1. To redirect ALL files on your domain use this in your
    .htaccess file if you are on a unix web server:

    redirectMatch 301 ^(.*)$ http://www.domain.com
    redirectMatch permanent ^(.*)$ http://www.domain.com

    You can also use one of these in your .htaccess file:

    redirect 301 /index.html http://www.domain.com/index.html
    redirect permanent /index.html http://www.domain.com/index.html
    redirectpermanent /index.html http://www.domain.com/index.html

    This will redirect "index.html" to another domain using a
    301-Moved permanently redirect.

    2. If you need to redirect http://mysite.com to
    http://www.mysite.com and you've got mod_rewrite enabled on
    your server you can put this in your .htaccess file:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^example\.com
    RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]

    or this:
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

    Tip: Use your full URL (ie http://www.domain.com) when
    obtaining incoming links to your site. Also use your full
    URL for the internal linking of your site.

    3. If you want to redirect your .htm pages to .php pages
    andd you've got mod_rewrite enabled on your server you can
    put this in your .htaccess file:

    RewriteEngine on
    RewriteBase /
    RewriteRule (.*).htm$ /$1.php

    4. If you wish to redirect your .html or .htm pages to
    .shtml pages because you are using Server Side Includes
    (SSI) add this code to your .htaccess file:

    AddType text/html .shtml
    AddHandler server-parsed .shtml .html .htm
    Options Indexes FollowSymLinks Includes
    DirectoryIndex index.shtml index.html
     
    Xavier_3D, Sep 19, 2007 IP
  5. Xavier_3D

    Xavier_3D Well-Known Member

    Messages:
    1,299
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    140
    #5
    Should be Enough I suppose.
     
    Xavier_3D, Sep 19, 2007 IP
  6. ac3_spad3s

    ac3_spad3s Well-Known Member

    Messages:
    1,927
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    140
    #6
    Wow! Thanks a lot Xavier_3D
     
    ac3_spad3s, Sep 19, 2007 IP