troubleshooting Question

Apache - url redirect from Subfolder url to https.

Avatar of Spikeuk30
Spikeuk30 asked on
LinuxApache Web ServerWeb Servers
2 Comments1 Solution768 ViewsLast Modified:
Good Morning,

im no linux guru but would like some help.

we have a website.

there is a sub folder containing access to staff login page.  


I have now set this up with a ssl certificate so now we have


I need to either block access directly to the url http:\\\staff\

or redirect back to https:\\  (which ever is easiest  )

I tried a Virtualhost entry in my apache config file but it doesnt seem to like the subfolder.  (I also need to redirect  http:\\ to https:\\  this bit seems to be working details below)

I tried this:

# the one needs to redirect   to - not working?

<VirtualHost *:80>
  Redirect /

#This one below works - it redirect to

<VirtualHost *:80>
  Redirect /

Any help would be appeciated...
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros