how to redirect all my product URL to root?
for example
i have a propduct ,with bellow URL
example.com/index.php?cPath=189
how i can forward it to
example.com/?cPath=189
and omit all index.php from my site?
tanx
This is a discussion on how to make 301 redirect? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; how to redirect all my product URL to root? for example i have a propduct ,with bellow URL example.com/index.php?cPath=189 how ...
how to redirect all my product URL to root?
for example
i have a propduct ,with bellow URL
example.com/index.php?cPath=189
how i can forward it to
example.com/?cPath=189
and omit all index.php from my site?
tanx
should i do this on .hatcass file?
You don't need to 301redirect to do that and I'm pretty sure you can get into trouble trying that.
You need to find the links that reference to FILENAME_DEFAULT which is defined as /index.php and change them to FILENAME_HOME, but you need to make sure that FILENAME_HOME is defined like this
define('FILENAME_HOME', '/');
It's pretty easy you just have to search FILENAME_DEFAULT in your files and you'll see everywhere it's referenced.
John
Bookmarks