Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Cant get 301 redirect to work
Old 09-16-2011, 04:47 AM Cant get 301 redirect to work
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0
I have a form on a page (built using WordPress FormBuilder plugin).


On successful submission the page refreshes with this URL (the same page but with a placemarker added at the end of the URL string):
Code:
http://www.mysite.com/dev/contact#formBuilderCSSIDGet_a_Quote
and a message "Thank you for submitting.."


But what I really want it to do is redirect to a completely new page, called
Code:
http://www.mysite.com/success



So I tried adding the following line at the bottom of my .htaccess file

Code:
redirect 301 /dev/contact#formBuilderCSSIDGet_a_Quote http://www.mysite.com/dev/success
Now if I understand correctly, the way to test this would be to enter the URL string
into the browser bar and if the 301 is working it should automatically redirect to

But that isnt happening. It stays on


It's on a LINUX server of course.


Any ideas?
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals"
Please login or register to view this content. Registration is FREE

Last edited by TWD; 09-16-2011 at 04:52 AM..
TWD is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-16-2011, 06:29 AM Re: Cant get 301 redirect to work
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The document fragment marker '#' is a client side operation ONLY and is not seen or acted upon by the server.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-16-2011, 09:40 AM Re: Cant get 301 redirect to work
TWD
TWD's Avatar
King Spam Talker

Posts: 1,190
Trades: 0
Quote:
Originally Posted by chrishirst View Post
The document fragment marker '#' is a client side operation ONLY and is not seen or acted upon by the server.
I see.
Well that screws that plan, then.

Well have to dig into the plugin then and see if I can give it a PHP header redirect maybe.
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals"
Please login or register to view this content. Registration is FREE
TWD is offline
Reply With Quote
View Public Profile
 
Old 11-29-2011, 08:16 PM Re: Cant get 301 redirect to work
Novice Talker

Posts: 11
Trades: 0
Can someone please explain to me what 301 stands for?
MichelleJanson7 is offline
Reply With Quote
View Public Profile
 
Old 11-29-2011, 08:32 PM Re: Cant get 301 redirect to work
Physicsguy's Avatar
404 - Title not found

Posts: 920
Name: Scott Kaye
Location: Ontario
Trades: 0
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes says it's 'Moved Permanently'. Google is a good friend of mine
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Cant get 301 redirect to work
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.48317 seconds with 12 queries