Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Landing / Splash Page (Catagories Links Redirect Now)?


jester420247sl

Recommended Posts

Hi all,

I just created a landing page for my site. I have OSC installed in the html folder of my site. I changed the "index.php" to "home.php". I then uploaded my new "index.php" which is my landing page. Now I have a slight problem, when I click on the links in my catagories I am redirected to the landing page "index.php". I have the "Header Tags for Novices" installed as well as "SEO URLs" and many other mods/contributions. I am curious if anyone may know why this is happening? I have removed my landing page for the moment so that my traffic won't run into this problem. However I would like to be able to use my langing page(s).

Thanks for any help you can provide

Link to comment
Share on other sites

u need to edit filenames.php & alter FILENAME_DEFAULT define

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

And make a copy of the index.php in the languages folder and call it home.php

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Thank you, however I just altered my includes/filenames.php and changed it from index.php to home.php and I still am having the same problem. I cleared all my cache etc as well. Does this take a while to reset itself? usually when I add contributions/mods they are instantanious. Are there any database changes that need to be made as well?

Link to comment
Share on other sites

Code from categories.php

 

$categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new)

Something's fishy....

:huh:

 

If you changed the filenames file correctly, and the new one is on the server where it should be it will work.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

have u checked u uploaded new version, made sure u uploaded to catalog folder not admin version?

 

also check home.php links correctly and does not have any malformed direct links.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

I have made sure I was uploading the catalog/includes version not the admin. I changed the line below:

 

define('FILENAME_DEFAULT', 'index.php');

 

to

 

define('FILENAME_DEFAULT', 'home.php');

 

although when you say "malformed" direct links, that confuses me a little. Do all the links have to be pulled from definitions of the various languages etc or can I add links in the following mannor, one link I do have is in the catagories.php but it's in the

 

<a href="http://www.mysite.com/home.php>Home</a>

format

 

My site is a custom template with many mods however and I do have a few other direct links within the home/index page but I think that they are all formatted corectly since they all do take me to the desired pages.

 

and as for this

And make a copy of the index.php in the languages folder and call it home.php

you do maean a copy of my main site index.php correct? My languages folder/directory does not have an index as it is now. That suggestion has me a little confused.

Link to comment
Share on other sites

In another thread you've stated you have one of the SEO URL contribs installed.

 

That means your .htaccess file probably has references to index.php that would need changed, I believe.

 

Code that looks like this (maybe)

 

RewriteRule ^(.*)-c-([0-9_]+).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

Would need altered because you want them to redirect to home.php now

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Check for this file:

 

/includes/languages/english/index.php

 

If you have it, make a copy of it and call it

 

/includes/languages/english/home.php

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

OK, Great, thanks all for your help. Let me tell you what I did so if anyone else has this problem they can use this as a check list hopefully.

 

 

1) create a landing page, and in my case I changed the name of my old index.php to home.php

 

 

 

2) change the index.php to home.php or what ever thier new main page is named in thier htaccess file if you are using modrewrite or SEO URLS or anything of that nature to change your page names

 

 

 

3) change in filenames in the includes directiory in the catalog not admin

define('FILENAME_DEFAULT', 'index.php');

to

define('FILENAME_DEFAULT', home.php');

 

 

4) lastly check for this file:

 

/includes/languages/english/index.php

 

If you have it, make a copy of it and call it

 

/includes/languages/english/home.php

Link to comment
Share on other sites

although when you say "malformed" direct links, that confuses me a little. Do all the links have to be pulled from definitions of the various languages etc or can I add links in the following mannor, one link I do have is in the catagories.php but it's in the

 

<a href="http://www.mysite.com/home.php>Home</a>

format

 

That is wrong, u must use tep_href_link

 

http://www.oscommerce.com/forums/index.php?sho...c=330479&hl

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...