Hey all

I have a htaccess file, than I want to redirect from (*)\.php to index.php#$1, but the # is making the rest a comment, how do I avoid this? I've tried with \#, but no change. How do I insert this icon?

Hi Ulrik04,

Not sure I understand why you are trying to redirect people to a page that start "index.php#" ... do you mean to add as variable on index.php: "index.php?"

Would be good if you could explain what you are trying to achieve, preferably with an example e.g. "http://www.mydomain.com/1.php should redirect to "http://www.mydomain.com/index.php?page=1".

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.