Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3999924
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:43:06+00:00 2026-05-20T07:43:06+00:00

Got 2 htaccess questions, hopefully you could help me out: 1) Why do these

  • 0

Got 2 htaccess questions, hopefully you could help me out:

1) Why do these commands don’t work:

RewriteRule ^(.*)\/Bing$ http://$1 [NC,L,R=301]

RewriteRule ^(.*)\/Bing\/(.*)$ http://$1/$2 [NC,L,R=301]

while these do work:

RewriteRule ^(.*)\/Bing$ http://www.myDomain.com [NC,L,R=301]
RewriteRule ^(.*)\/Bing\/(.*)$ http://www.myDomain.com /$2 [NC,L,R=301]

2) I want to use htaccess for the following manipulation:

when

current url =POST http://www.myDomain.com/

HTTP_REFERER = //www.myDomain.com/3

{Param2= x (some const value)}

will be silently converted to

POST (not GET!) http://www.myDomain.com/Myservice.asmx/Foo

{Param1 = 3, Param2= x (stays the same as before manipulation)}

Thanks in advance to any assistance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:43:06+00:00Added an answer on May 20, 2026 at 7:43 am
    1. RewriteRule does not ever get the host. Just the path, you will have to use RewriteCond with HTTP_HOST to do anything with the host.

    2. You can preserve post data by adding another directive along with your NC, R i.e. P, which stands for preserving post data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got this rewrite in my .htaccess: RewriteCond %{HTTP_HOST}%{REQUEST_URI} ^domain.com/$ [NC] RewriteRule ^(.*)$ http://www.domain.com/$1
I've got my htaccess rewriting on the following rules: RewriteRule ^([a-zA-Z0-9\-]*)/([0-9]*)/([a-zA-Z0-9\-_]*)$ /content.php?a=$1&b=$2&c=$3 RewriteRule ^([a-zA-Z0-9\-]*)/([0-9]*)$
I've got this in htaccess RewriteEngine On RewriteRule ^records$ records.php [L] RewriteRule ^records/$ records.php
I'm using a bunch of ReWrite rules in my .htaccess such as these RewriteRule
In my .htaccess file, I've got the fairly standard RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?p=$1 [NC] and
I got a error/issues with my .htaccess codes. The htaccess file is located in
I've got the following in an .htaccess . file: RewriteEngine on RewriteBase / RewriteCond
I've got a website with the following links www.mydomain.com/NiceUrl1.html www.mydomain.com/ blog.html www.mydomain.com/AnotherNiceUrl.html What .htaccess
I created/edited a .htaccess file and I got my site password protected fine. Question
I've got a question for the mod-rewrite gurus out there :p I've got a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.