Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Htaccess doesn't work at local server on port higher than default

Status
Not open for further replies.

webc2

Programmer
Jan 26, 2011
1
PL
Hello,
I have Webserv on my local computer.
In httpd.conf I defined ports to open (in webbrowser) my local sites (fe. `
<VirtualHost *:81>
DocumentRoot / ServerName localhost:81
</VirtualHost>

<VirtualHost *:82>
DocumentRoot / ServerName localhost:82
</VirtualHost>

etc.

While I had Windows XP everything works fine. When I installed Windows 7, and made same configuration as above .htaccess files located in other (I call it from other port than 80) folder than my main localhost (port 80) are not working.

F.e.

address ` is working fine - it shows site in folder / (there is index.php in this folder)

address ` is working fine - in htaccess located in / is rule for rewrite this adres to subsite.php (located in /
address ` is working fine - it shows site in folder / (there is index.php in this folder)

address ` isn't working - in htaccess located in / is rule for rewrite this adres to subsite.php (located in / - htaccess for this site isn't working
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top