Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

.htaccess

Jun 5, 2008 3:36AM PDT

I have a person who needs me to change something on their website but I've never really dealt with .htaccess much before

he needs like
http://www.fakewebsite.com/?popcorn

to be usable by
http://www.fakewebsite.com/popcorn

removing the ? get query from the url

I've been trying with

RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ index.php?$1

But it does not work and when put in place on the server all the images stop working because it thinks the /images/ directory is now a query

any help would be much appreciated

Discussion is locked