Loading

Author Topic: Landing Page  (Read 325 times)

gislander

  • Newbie
  • *
  • Posts: 1
    • Email
Landing Page
« on: February 21, 2012, 05:20:07 pm »
Hello: I have read postings about creating a landing page. I tried modifying the .htaccess and also a 301 redirect with no luck? I want a different page to load like a greeting page(index.html or page created within Osclass software theme) with a link to the main page (main.php). My site is sawthatad.com and would like https://sawthatad.com/my_home-p21 as the main page with link on it to org main page. Thanks for any help!
Gary

Jesse

  • Hero Member
  • *****
  • Posts: 509
  • Out of my mind, back in 5 minutes
    • Nuclear Projects
    • Email
Re: Landing Page
« Reply #1 on: February 22, 2012, 07:28:19 am »
One option for doing this would be to have your OSClass installation in a sub-directory. Then in your home directory you could still have a standard index.html (.php or whatever) file as your "landing page". You could then just link to the osclass sub directory.

That's one way to do it at least without any OSClass modifications.
Some helpful OSClass pages and customizations I've worked on... http://doc.osclass.org/User:Jesse
Please, no questions via email. Ask them on the forum.

cosmicx

  • Jr. Member
  • **
  • Posts: 59
Re: Landing Page
« Reply #2 on: February 22, 2012, 08:26:48 am »
this function is a must for osclass.

i think this function should be integrated to osclass as a built-in function.

a function that lets an admin create a new page and insert a link in the nav bar for the newly created link.

where, creating a new page and link shall be done in the admin page of osclass.

rafl

  • Sr. Member
  • ****
  • Posts: 415
    • Anunturi
Re: Landing Page
« Reply #3 on: February 22, 2012, 10:09:04 pm »
@cosmicx
All these are already done by OSClass by default  ;)

seven

  • Jr. Member
  • **
  • Posts: 73
Re: Landing Page
« Reply #4 on: February 22, 2012, 11:41:41 pm »
Hello Rafl,

may you guide us to find where we found 'how to do it'? I've only found the same solution as Jesse has written,

thx

rafl

  • Sr. Member
  • ****
  • Posts: 415
    • Anunturi
Re: Landing Page
« Reply #5 on: February 22, 2012, 11:55:09 pm »
Jesse is right and I would do as he suggests.

These are already done when creating pages:

Quote
a function that lets an admin create a new page and insert a link in the nav bar for the newly created link.

where, creating a new page and link shall be done in the admin page of osclass.

so, maybe, a turnaround with .htaccess could throw a chosen page as the homepage.. Just a thought


seven

  • Jr. Member
  • **
  • Posts: 73
Re: Landing Page
« Reply #6 on: February 23, 2012, 12:12:51 am »
thx for your reply :)

rafl

  • Sr. Member
  • ****
  • Posts: 415
    • Anunturi
Re: Landing Page
« Reply #7 on: February 23, 2012, 02:30:36 pm »
A search got me this (from www. kirupa. com)

Quote
When somebody types the URL to your site, more than likely, the index.htm or similar page like default.html will load first. The file that gets loaded as your default page is something you can change using the DirectoryIndex setting:

Code: [Select]
DirectoryIndex file.htm
With the above setting, users will load file.htm by default when they visit your site. For your cases, replace file.htm with the name of your default page. This will ensure that the page you specified gets loaded when a user types in the URL to your site.

So, it's kind of possible to apply to the OSClass htaccess file as well(?). But I didn't tested it.  ;)

b3b380

  • Newbie
  • *
  • Posts: 9
Re: Landing Page
« Reply #8 on: February 23, 2012, 05:47:46 pm »
Hi!
Sal Luca!

It is made ​​by me today and you can help. At me works perfectly: b3b380@yahoo.com

   

       

« Last Edit: February 23, 2012, 06:31:24 pm by b3b380 »

rafl

  • Sr. Member
  • ****
  • Posts: 415
    • Anunturi
Re: Landing Page
« Reply #9 on: February 23, 2012, 06:21:35 pm »
@b3b380
In my understanding, the subject here was about a landing page. Anybody corrects me.
A page to show as homepage when users are accessing the domain (/index.php or /).

It appears you are referring to canonicals redirects, which maybe is not the same thing  ;) but thanks anyway

b3b380

  • Newbie
  • *
  • Posts: 9
Re: Landing Page
« Reply #10 on: February 23, 2012, 06:29:45 pm »
Hi All!
Hi Luca!

Sorry I'm thousands of excuses, i've rushed and wrong subject.
have you tried?

rafl

  • Sr. Member
  • ****
  • Posts: 415
    • Anunturi
Re: Landing Page
« Reply #11 on: February 23, 2012, 06:41:31 pm »
You don't have to be sorry. Ur welcome.

btw, your htaccess is doing well