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
Htacces how Redirect 301, http://mysite.com/?staticpage to http://otherdomain.com
Old 03-23-2010, 01:42 PM Htacces how Redirect 301, http://mysite.com/?staticpage to http://otherdomain.com
Skilled Talker

Posts: 78
Name: syu
Trades: 0
Maybe this is simple enough

I want to redirect static page http://mysite.com/?staticpage to http://otherdomain.com

i had try some rule like below but still dont get the working rule, please help guys what is the right rule


Quote:
RewriteEngine On

Redirect 301 /?staticpage http://otherdomain.com

or using quotes around still not working


Quote:
RewriteEngine On

Redirect 301 "/?staticpage" http://otherdomain.com
__________________
Lets help each other
basketmen is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-31-2010, 10:54 AM Re: Htacces how Redirect 301, http://mysite.com/?staticpage to http://otherdomain.com
L a r r y's Avatar
Super Talker

Posts: 103
Name: Larry K
Location: Arizona
Trades: 0
The problem is with the question mark. It has a special function in regular expressions to mean 0 or 1 instance(s) of the character preceding it. My first attempt would be to place a backslash in front of it as in "\?" and if that didn't work, try doubling the question mark "??" which I think would mean 0 or 1 instances of the preceding question mark. That may also be more correct to use "(?)?" to make it work. And if that didn't work I would go read up on regex (short for REgular EXpressions) in htaccess.
L a r r y is offline
Reply With Quote
View Public Profile Visit L a r r y's homepage!
 
Reply     « Reply to Htacces how Redirect 301, http://mysite.com/?staticpage to http://otherdomain.com
 

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.09849 seconds with 12 queries