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

  • Home
  • SEARCH
  • 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 7581515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:13:22+00:00 2026-05-30T18:13:22+00:00

I have the following .htaccess RewriteRule ^register.html$ ?page=register I have a jquery ajax function

  • 0

I have the following .htaccess

RewriteRule ^register.html$ ?page=register

I have a jquery ajax function which requests the following normally, it works.

www.blabla.com/#!?page=register&module=ajax

However, it get’s bugged when I use it with .htaccess

www.blabla.com/#!kayit.html&module=ajax [HTTP/1.1 404 Not Found 114 ms]

How can I solve this, any ideas?

  • 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-30T18:13:24+00:00Added an answer on May 30, 2026 at 6:13 pm

    You simply can’t. You are using the fragment identifier (the text after the hash symbol) as a path (which normal procedure for ajax-y websites), but the fragment identifier never even reaches the server.
    You have to make an ajax request to the server with the content of it.

    The actual question would be, how to merge GET variables from the Rewrite Rule with the ones, already provided.

    So in your example, you want the URL register.html?var=1 to be redirected to ?page=register&var=1. You can do that by adding the qsappend (query string append) flag:

    RewriteRule ^register.html$ ?page=register [qsappend]
    

    Docs: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewriteflags

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

Sidebar

Related Questions

i have following .htaccess RewriteEngine On DirectoryIndex index.php RewriteRule ^([a-zA-Z0-9_-]{3,20})/([^/]+)/([^/]+)?$ index\.php?page=$1&s=$2&o=$3 [L] RewriteRule ^([a-zA-Z0-9_-]{3,20})/([^/]+)?$
I have the following in my .htaccess file: RewriteCond %{QUERY_STRING} ^route\=product\/category\&path\=35\&page\=([0-9]+)$ RewriteRule ^index\.php$ http://%{HTTP_HOST}/product/category/35/page_$1?
I have following in htaccess file: RewriteCond %{HTTP_HOST} ^(www.)?abcdef.com$ RewriteRule (.*)$ http://www.xyz.org.il/$1 [R=301,L] but
I have website which works fine and have following in the htaccess file RewriteEngine
I have a following rule in .htaccess file: RewriteRule orders\.html orders.php [L,NC] How can
I have the following .htaccess rule: RewriteEngine on RewriteRule ^(.*) http://www.server2.com/index.php?action=$1 I need to
i have following in my htaccess RewriteRule ^MyPage page.php?type=mypage [NC, L] RewriteRule ^MyPhotos page.php?type=photos
I have the following .htaccess file. RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.mysite\.com$ RewriteRule ^(.*)$ http://www.mysite.com/$1
I have the following .htaccess file Options +FollowSymLinks RewriteEngine on RewriteRule (.*)-pid-(.*)\.html$ product.php?n=$1&pid=$2 and
So I have the following .htaccess in my /var/www/site RewriteEngine on RewriteRule ^([^/]+)/?$ parser.php?id=$1

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.