JohnDavisGH Posted October 2, 2020 Share Posted October 2, 2020 (edited) I want to set Apache to redirect from the xamp dashboard to my store which is in C:\xampp\htdocs\store When I go to http://store.com it takes me the xampp dashboard. Here is my Host File 127.0.0.1 store.com Here is my httpd-vhost.conf file NameVirtualHost *:80 <VirtualHost *:80> ServerName store.com RewriteEngine On Rewrite Rule "^store.com$" "store.com\mystore" [R] DocumentRoot "C:xampp/htdocs" <Directory "C:/xampp/htdocs"> Options Indexes FollowSysLinks Includes ExecCGI AllowOverride All Require all granted </Directory> </Virtual Host> I also tried to do the following changes and I get HTTP 500 error. NameVirtualHost *:80 <VirtualHost *:80> Servername store.com DocumentRoot "C:xampp/htdocs/mystore" <Directory "C:/xampp/htdocs/mystore"> Options Indexes FollowSysLinks Includes ExecCGI AllowOverride All Require all granted </Directory> </VirtualHost> ShopDomain is set to store.com Base URI is set to /mystore/ Any tips? Edited October 2, 2020 by JohnDavisGH (see edit history) Link to comment Share on other sites More sharing options...
JohnDavisGH Posted October 2, 2020 Author Share Posted October 2, 2020 8 minutes ago, Crezzur said: U have to link it to where your folder (store) is located <Directory "C:/map/where/store/islocated"> Thanks for your reply, NameVirtualHost *:80 <VirtualHost *:80> Servername store.com DocumentRoot "C:xampp/htdocs/mystore" <Directory "C:/xampp/htdocs/mystore"> Options Indexes FollowSysLinks Includes ExecCGI AllowOverride All Require all granted </Directory> </VirtualHost> Changing Directory "C:/xampp/htdocs/mystore" still takes me to the dashboard, I also tried changing the DocumentRoot, I get a HTTP 500 error if I do this. I tried this both with the Redirect commands on and off. Link to comment Share on other sites More sharing options...
JohnDavisGH Posted October 2, 2020 Author Share Posted October 2, 2020 Just now, Crezzur said: is your store located after the file "htdocs' ? yes, the root folder is C:xampp/htdocs/ Prestashop(mystore) is installed in C:xampp/htdocs/mystore I ultimately do not want to type http://store.com/mystore. I just want to type http://store.com and redirect to http://store.com/mystore and not land on the xampp dashboard. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now