Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old May 8th, 2006, 08:41 AM
SnapCracker's Avatar
SnapCracker SnapCracker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Kent, United Kingdom
Posts: 165 SnapCracker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 21 h 22 m 31 sec
Reputation Power: 4
Directing new user to specific page of website

Hi again!
OK, what code do big name websites use to direct a user to a specific page of their website without the user having to go to the homepage? For example, with special promotions they usually advertise a link such as www.bigcompany.com/amazingproduct, however, the page which relates to this amazing product is located in something like www.bigcompany.com/thisyearsstuff/morestuff/stuffwewanttogetridof/amazingproduct_240.htm, and they don't really put the latter link on the sales blurb!
I am using a meta refresh for that purpose, like this;
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://www.mycompany.com/0cashbackshops/CasbackshopsIF.php"> <META NAME="GENERATOR" CONTENT="Mozilla/3.0Gold (Win95; I) [Netscape]"> and I have just called it a name without the extension name like 'fundraising'
However, it's a bit slow and the user knows they are being redirected. I need something a bit more slick if there is such a thing. I see this all the time especially when the url changes in the address bar of the browser before the page forms.

Reply With Quote
  #2  
Old May 8th, 2006, 10:53 AM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 541 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 2 h 15 m 6 sec
Reputation Power: 3
"friendly" URLs

I imagine they are using Apache mod_rewrite or mod_redirect. If you have an Apache server you can put lines into the httpd.conf or htaccess file to show "friendly" URLs, rather than the "messy" looking paths.

Reply With Quote
  #3  
Old May 8th, 2006, 01:01 PM
SnapCracker's Avatar
SnapCracker SnapCracker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Kent, United Kingdom
Posts: 165 SnapCracker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 21 h 22 m 31 sec
Reputation Power: 4
Thanks Mittineague, It's sometimes really difficult to solve problem when you don't know where to start looking!

Would it be similar to this code in the htaccess file.
RedirectMatch ^/fundraising http://www.mycompany.com/0cashbackshops/CasbackshopsIF.php?

But where amongst this rather sad looking 16 lines of code!

Reply With Quote
  #4  
Old May 22nd, 2006, 11:04 AM
SnapCracker's Avatar
SnapCracker SnapCracker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: Kent, United Kingdom
Posts: 165 SnapCracker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 21 h 22 m 31 sec
Reputation Power: 4
I have managed to sucessfully do the rediection using
redirect permanent /fundraising http://mydomain.co.uk/0cashbackshops/CashbackshopsIF.php
in the .htaccess file, however there are other issues to be resolved now posted in the correct Web Sever Configuration forum.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Development > Directing new user to specific page of website


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway