This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Help with Vhost and redirecting
#1
Help with Vhost and redirecting
Hey Sentora! Thanks in advance for your help.

I install Wordpress via Sentastico in a different path, not in the root path of the domain. How can I edit the vhost or what can I do for my domain to land in that path?

current domain: gfisys.info
I need the default page to land in gfisys.info/wp

I am sure this was asked before but I couldn't find it. 

I appreciate any help of if you can point me to the right direction.

Fabian
Reply
Thanks given by:
#2
RE: Help with Vhost and redirecting
Move the files don't edit the vhost.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by:
#3
RE: Help with Vhost and redirecting
(02-24-2017, 11:00 PM)Me.B Wrote: Move the files don't edit the vhost.

M B

If I move the files the I have to mess with the DB for WordPress.
Reply
Thanks given by:
#4
RE: Help with Vhost and redirecting
It would be smarter to move the files as Me.B mentioned and do the DB edits. Or, you can try .htaccess rules in the domain's root folder (/var/sentora/hostdata/[username]/public_html/gfisys_info/.htaccess):
Code:
# This allows you to redirect your entire website to any other domain
Redirect 301 / http://gfisys.info/wp/

Or maybe even (not tested):
Code:
# This redirects all traffic to domain.com/wp but shows the visitor domain.com
RewriteEngine on
RewriteRule ^/?wp.* / [P]
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#5
RE: Help with Vhost and redirecting
(02-24-2017, 11:53 PM)fachex Wrote: If I move the files the I have to mess with the DB for WordPress.

Think of it this way:

When you get a new apartment/house, you don't move the building, you move your furniture and update your address with the postal service...
What you wanted in your original question is trying to move the entire neighborhood to accommodate your new address...
Reply
Thanks given by: TGates
#6
RE: Help with Vhost and redirecting
(02-25-2017, 08:33 AM)aroaminggeek Wrote: Think of it this way:

When you get a new apartment/house, you don't move the building, you move your furniture and update your address with the postal service...
What you wanted in your original question is trying to move the entire neighborhood to accommodate your new address...

Greatest explanation I have ever heard! Nice! Big Grin
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by: aroaminggeek
#7
RE: Help with Vhost and redirecting
(02-26-2017, 03:05 AM)TGates Wrote: Greatest explanation I have ever heard! Nice! Big Grin

I knew my years of web hosting support would someday come in handy  Tongue
Reply
Thanks given by:
#8
RE: Help with Vhost and redirecting
You can edit only a field in WP root to change the default folder for WP.

Or place all WP files in your website root folder that would enable WP to work in your domain without messing up the vhost.

Don't mess up with vhosts or you will end up in issues harder to fix.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by:
#9
RE: Help with Vhost and redirecting
I'd like to help you, but I am also confused about that.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
sentora creates vhost but it displays the apache start page timce2000 4 9 ,578 06-17-2018, 11:31 AM
Last Post: TGates
Strange vhost issue graveyardboogie 11 19 ,821 05-10-2018, 01:43 AM
Last Post: TGates
Make a change in httpd-vhost.conf whitewolf101 2 6 ,759 11-20-2017, 07:28 PM
Last Post: Me.B

Forum Jump:


Users browsing this thread: 1 Guest(s)