Web Hosting Talk







View Full Version : (Easy enough) What is the right RewriteRule inhtaccess for this...


basketmen
09-10-2009, 08:09 PM
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

aradapilot
09-11-2009, 12:03 PM
RewriteRule http://www.domain.com/?(.*) http://www.domain.com/$1

basketmen
09-11-2009, 07:31 PM
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?