Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2007
    Posts
    273

    (Easy enough) What is the right RewriteRule inhtaccess for this...

    it is very simple actually, i just want redirect all pages from

    domain.com/?pagename to domain.com/pagename

    so i just want to remove the ? character




    what is the right Rule in htaccess for it guys?

    i try below but its not working, its say error 404



    RewriteRule http://www.domain.com/?$1 http://www.domain.com/$1






    this is working to redirect a page, but i need to redirect every pages

    Redirect 301 /?pagename http://www.example.com/pagename
    Lets be stable diligent person

  2. #2
    Join Date
    May 2008
    Location
    Rutherford, NJ
    Posts
    68
    RewriteRule http://www.domain.com/?(.*) http://www.domain.com/$1
    Database design and performance optimization, custom PHP scripts, and publicly available resources for developers!
    http://www.zeropride.com

  3. #3
    Join Date
    Jul 2007
    Posts
    273
    Quote Originally Posted by aradapilot View Post
    RewriteRule http://www.domain.com/?(.*) http://www.domain.com/$1
    hmm its still not working, its say error 404 not found, is there other rule bro?
    Lets be stable diligent person

Similar Threads

  1. help with RewriteRule
    By anurva-Mehul in forum Programming Discussion
    Replies: 7
    Last Post: 01-12-2006, 04:37 PM
  2. RewriteRule Help
    By chrisS in forum Hosting Security and Technology
    Replies: 0
    Last Post: 11-24-2004, 12:13 AM
  3. How to use RewriteRule?
    By _goliath2 in forum Hosting Security and Technology
    Replies: 0
    Last Post: 10-19-2004, 07:21 AM
  4. RewriteRule help
    By bueno in forum Programming Discussion
    Replies: 7
    Last Post: 09-02-2004, 07:23 PM
  5. Any one can help me in RewriteRule ?
    By justbenice in forum Hosting Security and Technology
    Replies: 2
    Last Post: 08-01-2004, 07:41 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
  •