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



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  1 links from elsewhere to this Post. Click to view. #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!
  #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!
  #3  
Old 05-27-2008, 03:37 PM
osCMax Development Team
 
Join Date: Nov 2002
Location: Orlando
Posts: 422
Thanks: 19
Thanked 81 Times in 52 Posts
Rep Power: 12
JohnW is just really niceJohnW is just really niceJohnW is just really niceJohnW is just really niceJohnW is just really nice
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!
Closed Thread

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


LinkBacks (?)

LinkBack to this Thread: http://www.oscmax.com/forums/oscommerce-2-2-modification-help/14001-how-make-301-redirect.html

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


All times are GMT -8. The time now is 06:28 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2010 osCmax
Inactive Reminders By Icora Web Design