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 144283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:13:44+00:00 2026-05-11T08:13:44+00:00

Because of strange cross domain AJAX problems, causing AJAX requests to fail when not

  • 0

Because of strange cross domain AJAX problems, causing AJAX requests to fail when not using www.(the PHP handler communicating with the request is given in a relative path, so it can’t be an address issue or something – that’s what this question is about though), I have forced www. using .htaccess :

#enable rewrite engine and set options Options +FollowSymLinks RewriteEngine on  #only www. RewriteCond %{HTTP_HOST} !^www.domain.com$ RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301] 

This works great. However, I want to allow other webmasters to post one of my forms on their website, using my form URL in their form’s action attribute. This always worked, however after my .htaccess change the forms are only submitted when the webmaster adds www. to the action value. Without www. the form will not get submitted.

How should I change my .htaccess file to make sure that these forms are also submitted without http://www.?

  • 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. 2026-05-11T08:13:44+00:00Added an answer on May 11, 2026 at 8:13 am

    You could use

    RewriteCond %{REQUEST_METHOD} ^GET$ 

    which will rewrite only GET requests, leaving POST requests as they are.

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

Sidebar

Related Questions

It's very strange because phpmyadmin is not in document root, but still can visit
The question title is a bit strange because I'm not exactly sure how to
This behavior is strange because I could not get the segfault if the shared
it is very strange, because this error doesn't happen all the time... I have
Because the float data type in PHP is inaccurate, and a FLOAT in MySQL
This' strange because all my other NSUrls in program are working properly but this
It's strange because I only get 1 error in IE: 'sTime is undefined'. sTime
I have a strange horizontal scroll, strange because I have a 100% width container.
The following doesn't come across as a cross-domain issue, but it smells like one.
I have got problem with django's UserCreationForm. It's very strange because ween I: view:

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.