0

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...

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by maba001
0

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)

Edited by maba001: Spelling error

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.