Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Redirecting to index.php


rob_101

Recommended Posts

Hi, i've just accidently stepped into teh role of having to update my comanpnies website.

 

My leading problem is when you go to the website, it does not go to teh index.php but to allprods.php, where and how would i direct it back to inex.php

 

I've browsed thru the furoms and documentation and even searched for anything to help me, as of yet i haven't been able to find an answer.

 

Thanks for any help in advance.

 

Rob

Link to comment
Share on other sites

Wha? As in you type in your url and instead of index.php you get allprods.php instead? That wouldn't be the standard thing to do with osC so I don't know if you'll find any info. In fact I think your situation is probably unique.

 

Only a couple three ways I can think of where that might be.

 

There's a redirect in index.php or there's an htaccess file with a rewrite in it or the server has been directed to pull up allprods.php as it's defualt file. That last one isn't too likely I think.

 

HTH,

Iggy

Everything's funny but nothing's a joke...

Link to comment
Share on other sites

I found the htaccess file, but as far as i can tell its pointing to the index.php, i can't seem to find anything in the idex.php that would direct it elsewhere.

 

we can still visit the index.php, if we manually type blah.com/index.php.

 

i'm not to use to php coding, so still trying to get my head around it.

 

i got plenty of other problems i gotta work out to, but i think i'll be right with those in time, its just getting the index.php as the default homepage thats my current concern.

 

thanks for the help thus far.

Link to comment
Share on other sites

The .htaccess file shouldn't really point anywhere UNLESS there's a rewrite rule in there. Try renaming .htaccess to htaccess and see what that does.

 

You might post it and your index.php file as well if you think folks here might suss it.

 

Iggy

Everything's funny but nothing's a joke...

Link to comment
Share on other sites

Hi, i've just accidently stepped into teh role of having to update my comanpnies website.

 

My leading problem is when you go to the website, it does not go to teh index.php but to allprods.php, where and how would i direct it back to inex.php

 

I've browsed thru the furoms and documentation and even searched for anything to help me, as of yet i haven't been able to find an answer.

 

Thanks for any help in advance.

 

Rob

 

Just for giggles rename your allprods.php to oldallprods.php, then type your blah.com and see if it pops up to your index.php. I had the same problem! But do that first and lets see how that works! Don't worry you can rename it back after your done!

Link to comment
Share on other sites

hehe, yeah well that could be funny, buts it cool, the guy who created the site showed me a few things to get me started, thank god for that cause i was not even close to being in the right directory, i'm new to php coding last time i did any web codign was about 6 years ago in highschool using notepad, so this is a bit of a jump.

 

know i just gotta find out how to add a 2nd price column to teh catalog and how to restrict the new products to only the latest 20 products, not every product added since the website was first created

 

thanks guys for all your input.

 

Rob

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...