|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
||||
|
||||
|
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. |
|
#2
|
||||
|
||||
|
"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.
|
|
#3
|
||||
|
||||
|
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! |
|
#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. |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > Directing new user to specific page of website |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|