Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Here's my httpd.conf. Inside it, I have the following in place


and I have a .htaccess

RewriteEngine On
RewriteRule ^wordpress(.*)$ wp-oct/live$1

in my local www folder with wordpress installed in /wp-oct/live/ to which /wordpress/ is supposed to redirect to, but it doesn't. It instead redirects to http://localhost:8080/wp-oct/live/. Why is 8080 showing up?

share|improve this question
Redirect can be cached in browser and is tricky to get rid of... can you test it on different browser/workstation? –  Kamil ┼árot Nov 1 '12 at 9:58
A redirect to port 8080 is no indication that Apache is listening on port 8080. That RewriteRule should not cause a redirect. There must be more to your configuration and I think you'll need to paste some of it here to get a useful answer. All of your rewrite rules would be a good start. –  Ladadadada Nov 1 '12 at 10:03
@Kamil┼árot I've tried all my browsers and their respective incognito modes. –  laggingreflex Nov 1 '12 at 10:21
@Ladadadada Those are the only rules on my .htaccess in www root folder. What other confs do you mean? –  laggingreflex Nov 1 '12 at 10:23
[SOLVED] So this was causing it: ServerName (line224 my httpd.conf) –  laggingreflex Nov 3 '12 at 7:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.