.htaccess
Posted by: rctneil (---.ipt.aol.com)
Date: April 02, 2007 01:02PM

Hello,
I have a need to change the folder where my site looks for it's "include" files. I have been told I can do this using a .htaccess file. Can anyone answer the following questions for me:

1 - Will a .htaccess file work with WAMP?

2 - To change the "include" path, what do i put in the .htaccess file?

3 - If i put the .htaccess file in "www" which is where all my sites are stored then will the rules dictated in the .htaccess file apply to all flles/folders and subfiles/subfolders within "www"?

Regards & Thanks

Neil


Options: ReplyQuote
Re: .htaccess
Posted by: CyberSpatium (71.237.217.---)
Date: April 02, 2007 03:51PM

.htaccess is part of apache, not wamp. put this in your c:\wamp\www directory, and it will work in all directorys under that one.

php_value include_path "c:/new/location/for/includes"

save the file, and make sure it has the name .htaccess, not htaccess.txt

it has to be .htaccess or it will not work.

you can do this correctly by opening notepad, copy and paste the directive above and paste it in notepad. change the location i entered above with your new include path location. now save the file as ".htaccess" (make sure you include the double quotes when saving) and it will be saved as .htaccess


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Please visit my latest website Clarify Loans:
ClarifyLoans.com

Options: ReplyQuote
Re: .htaccess
Posted by: rctneil (---.ipt.aol.com)
Date: April 02, 2007 04:23PM

Hey,
Thanks for that. That works brilliantly. The next problem which I am having is:

1 - Is there a way I can do a similar thing for images. So instead of putting in the .htaccess where the includes are stored but putting something in saying where images are stored?

Options: ReplyQuote
Re: .htaccess
Posted by: yfastud (72.236.169.---)
Date: April 02, 2007 09:29PM

Quote

you can do this correctly by opening notepad, copy and paste the directive above and paste it in notepad. change the location i entered above with your new include path location. now save the file as ".htaccess" (make sure you include the double quotes when saving) and it will be saved as .htaccess

Hey!!! That's my trick, and it's working very well, huh??? ;-)

Have fun,

[www.jlbn.com] (testing WAMPS on Vista)
[test.jlbn.com] (testing codes on Vista)

Win Vista Business
Apache 2.2.4
MySQL 5.2.3 F-A
PHP 5.2.1
SSL 0.9.8D

phpMyAdmin 2.10.0.2

Options: ReplyQuote
Re: .htaccess
Posted by: CyberSpatium (71.237.217.---)
Date: April 03, 2007 09:12AM

rctneil wrote:

>
> 1 - Is there a way I can do a similar thing for images. So
> instead of putting in the .htaccess where the includes are
> stored but putting something in saying where images are stored?

huh? not quite sure what you are talking about here.


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Please visit my latest website Clarify Loans:
ClarifyLoans.com

Options: ReplyQuote


Sorry, only registered users may post in this forum.