![]() |
htacess redirect?
Hello, how do you write a redirect condition in htacess y if someone types in exactly http://www.example.com/folder/, it will redirect to exactly http://www.example.com/folder.php and not affecting any files inside the /folder?
Thanks |
you can try
Code:
RedirectMatch 301 ^/folder/ http://www.mydomain.com/file.php |
or try
Code:
RedirectMatch 301 ^/folder/ http://www.mydomain.com/forum.php |
am I going blind or is that the same thing I posted?..lol
|
Quote:
|
Yea, kinda like posting at the .com, the support staff post right hours later after you help someone & post asking the same thing, i think they're getting paid by the post on support.
|
Quote:
Didn't realize adding / in front of folder works. I have try RedirectMatch 301 ^folder/ http://www.mydomain.com/file.php and this doesn't work as to what I want. Thank you very much! |
All times are GMT. The time now is 08:32 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|