osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

how to make 301 redirect?

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 05-19-2008, 12:20 AM
611 611 is offline
New Member
 
Join Date: May 2008
Posts: 17
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 0
611 is on a distinguished road
Default how to make 301 redirect?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 05-20-2008, 05:26 AM
611 611 is offline
New Member
 
Join Date: May 2008
Posts: 17
Thanks: 6
Thanked 0 Times in 0 Posts
Rep Power: 0
611 is on a distinguished road
Default Re: how to make 301 redirect?

should i do this on .hatcass file?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 05-27-2008, 03:37 PM
osCMax Testing Team
 
Join Date: Nov 2002
Location: Orlando
Posts: 212
Thanks: 10
Thanked 26 Times in 14 Posts
Rep Power: 7
JohnW will become famous soon enoughJohnW will become famous soon enough
Default Re: how to make 301 redirect?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -8. The time now is 12:48 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax