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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:27:27+00:00 2026-06-07T03:27:27+00:00

I have this addrress http://mysite.com/index.php?cat=7 I write this mod rewrite RewriteRule ^category/(\d+) index.php?cat=$1 this

  • 0

I have this addrress
http://mysite.com/index.php?cat=7

I write this mod rewrite

 RewriteRule ^category/(\d+) index.php?cat=$1

this means: if someone opens my adrress, his automatically he goes to the address:

  http://mysite.com/category/7

but i need use anchor also, that is, i need at the opening my address, happened redirected to this address:

 http://mysite.com/category/7#!somesome

Tell me please, how to write such RewriteRule ?

  • 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-06-07T03:27:29+00:00Added an answer on June 7, 2026 at 3:27 am

    If I correctly understand your question, you want to acquire the URL fragment (the part of the URL after the #) using (Apache’s) mod rewrite.

    Unfortunately this cannot be done. According to Wikipedia’s article:

    The fragment identifier functions differently than the rest of the URI: namely, its processing is exclusively client-side with no participation from the server

    and

    When an agent (such as a Web browser) requests a resource from a Web server, the agent sends the URI to the server, but does not send the fragment.

    You’ll have to work around this issue, probably using (client-side) javascript.

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

Sidebar

Related Questions

I have this page where I am doing testing http://www.comehike.com/test_fb_connect.php The button works fine
I have a JSP page at an address like this: http://example.com/foo/bar/rawr/something.jsp When I output
I keep getting this Magento error emailed to myself: URL: http://mysite.com/sendfriend/product/send/id/1/ IP Address: 66.249.65.69
For example I have this address: http://www.domain.com/page/ page-name page-name is always changed, by the
The situation is, I have a private wiki, say at http://mysite.com/wiki , which is
I have installed kloxo control panel, this is the address http://173.212.227.142:7778/ . Then I
Let my site be http://cars.com I have links on my site, to http://girls.com ,
I have the following template (masterLayout.xhtml): <!DOCTYPE html> <html xmlns=http://www.w3.org/1999/xhtml xmlns:h=http://java.sun.com/jsf/html xmlns:ui=http://java.sun.com/jsf/facelets> <f:view contentType=text/html>
http://www.raymondselda.com/php-contact-form-with-jquery-validation/ I'm trying a few different contact forms including the one above. I have
I have this working: address = [] for row in ws.iter_rows(row_offset=4,column_offset=3): if len(row) >

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.