Solved

Redirect localhost to site

Posted on 2009-06-30
4
847 Views
Last Modified: 2012-05-07
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
Comment
Question by:john-formby
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 39

Accepted Solution

by:
abel earned 500 total points
ID: 24744102
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
 
LVL 39

Expert Comment

by:abel
ID: 24744104
At ==> Add

(my poor English  ;-)
0
 
LVL 14

Author Comment

by:john-formby
ID: 24744220
Thanks for the fast response, that works great.

John
0
 
LVL 39

Expert Comment

by:abel
ID: 24744229
;)

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

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
.htacess file 301 redirects that are strange 4 71
Change local server setting in php 6 104
ip / url redirect 13 74
Windows Server 2102 R2 - IIS 8.5 redirection assistance ? 7 39
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question