User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » htaccess 301 redir. (w/ notice to user to update)? Page [1]  
quagmire02
All American
44225 Posts
user info
edit post

i'm not aware of it, but maybe y'all are...is there a way to set up a 301 redirect in .htaccess that actually notifies the user that the page has moved and to update their bookmarks?

we're renaming/relocating a 500+ page site, and i don't want to set up dummy pages with redirects on them...but i want the user to realize that the page moved and that it has a new address

a quick google search gave me nothing...suggestions?

9/20/2007 11:37:15 AM

OmarBadu
zidik
25067 Posts
user info
edit post

without researching this - even the big sites out there use the dummy pages with a # second redirect to notify users so i imagine if there was a better way they'd do it

9/20/2007 11:44:45 AM

qntmfred
retired
40556 Posts
user info
edit post

ErrorDocument 301 /errors/updateyourbookmarksandredirect.html

?

9/20/2007 11:48:54 AM

mellocj
All American
1872 Posts
user info
edit post

a 301 redirect is a specific HTTP status message that is returned to the browser. You can't use a 301 redirect AND give a notice to the user. The only way I can think of to do it would be to use some php code on the page you redirected them, to detect if they had been redirected (referral url).

If you want to give them a notice before you redirect them, you would need to use a META REFRESH type of redirect as OmarBadu mentioned.

However you're probably aware that a 301 redirect is search engine friendly and will pass pagerank while a meta refresh redirect will not.

9/20/2007 12:00:32 PM

 Message Boards » Tech Talk » htaccess 301 redir. (w/ notice to user to update)? Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.