hi,

how can i access the .htaccess file. i have been created a .htaccess file and write the code wat i want. this is working fine when i should type url with correct formate which i mention in the .htaccess file. i want to redirect page automatically.. plz give me some suggestions regarding this...

hi,

how can i access the .htaccess file. i have been created a .htaccess file and write the code wat i want. this is working fine when i should type url with correct formate which i mention in the .htaccess file. i want to redirect page automatically.. plz give me some suggestions regarding this...

Maybe there is a little language problem. Do you already have a working .htaccess file or not?

What is it supposed to do?
Redirect only specific URLs?
Redirect all URLs?

So now to the answers:

  1. This belongs into a yet to be created Apache config forum - not PHP
  2. For all URLs you would use Redirect (read this Apache doc)
  3. For specific URLs you would use RedirectMatch (again the pure Apache doc)
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.