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 ...
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| should i do this on .hatcass file? |
|
#3
| |||
| |||
| 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 |
![]() |
| Thread Tools | |
| |
| ||||
| Posted By | For | Type | Date | |
| How to make 301 redirect | This thread | Refback | 02-06-2010 02:40 PM | |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| redirect to root | Dark1 | osCMax v2 Installation issues | 1 | 10-26-2007 11:54 AM |
| redirect from root | rhodesengr | osCMax v2 Installation issues | 5 | 08-25-2007 02:09 PM |
| smart redirect | michael_s | New osCommerce Contributions | 0 | 05-13-2007 08:30 PM |
| Make us your homepage link - Does anyone know how to make? | markymrk22 | osCommerce 2.2 Modification Help | 1 | 06-05-2005 08:49 AM |
| downloads by redirect | jloyzaga | osCMax v1.7 Discussion | 0 | 09-25-2003 03:09 PM |