Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 852
  • Last Modified:

Redirect localhost to site

Hi,

I am running WAMP Server and when I go to http://localhost it takes me to the WAMP page.  How would I get it to redirect so when I go to localhost, it takes me to http://localhost/joomla?

Thanks,

John
0
john-formby
Asked:
john-formby
  • 3
1 Solution
 
abelCommented:
At the following two lines to your Apache's http.conf inside the VirtualHosr or inside the global config (if you do not have a Virtual Host) and check whether the following line is not commented out:

LoadModule rewrite_module modules/mod_rewrite.so

-- Abel --

RewriteEngine On	
RewriteRule ^/$ /joomla/ [R]

Open in new window

0
 
abelCommented:
At ==> Add

(my poor English  ;-)
0
 
john-formbyAuthor Commented:
Thanks for the fast response, that works great.

John
0
 
abelCommented:
;)

tx for the follow-up and the pts. Glad it works!
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now