Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2007
    Posts
    55

    Very quick htaccess question!

    I simply want to rewrite a hash # or other symbol to a question mark via htaccess. So any hash in the URL anywhere should internally rewrite to a ?. All I want is to remove ? from the URL really.

    Thanks in advance.

  2. #2
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    Have a try of below.

    Code:
    RewriteRule ^(.*)#(.*)$ /$1?$2 [E=RED:1,QSA]
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  3. #3
    Join Date
    Oct 2007
    Posts
    55
    Hmm it doesn't seem to work properly. The query doesn't work with a hash if I use that code you've provided.

Similar Threads

  1. Quick .htaccess question
    By hosty567 in forum Hosting Security and Technology
    Replies: 9
    Last Post: 08-26-2009, 07:33 PM
  2. htaccess question
    By Mekhu in forum Hosting Security and Technology
    Replies: 5
    Last Post: 10-03-2008, 12:40 AM
  3. .htaccess question
    By Sonikku in forum Hosting Security and Technology
    Replies: 4
    Last Post: 11-30-2004, 09:15 PM
  4. htaccess question
    By matt2kjones in forum Hosting Security and Technology
    Replies: 1
    Last Post: 07-08-2003, 05:57 PM
  5. another htaccess question
    By MGCJerry in forum Hosting Security and Technology
    Replies: 2
    Last Post: 03-17-2002, 02:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •