-1

On Apache, I would like something like this:

https://myserver.com/Intro evaluates to /myserver.com/januaryintro.php

as an example.

I use htaccess and cannot make this work. I get Multiple Pages error or Page Not found.

Ron
  • 2,435
  • 3
  • 25
  • 34
  • A reason for the downvote would be helpful. – Ron Dec 06 '18 at 16:32
  • Downvote reason 1: no configuration in the question which indicate no effort in research or debugging. Reason 2: lack of research. This has been addressed tons of times. Reason 3: because the guy is just mean :-) – Nic3500 Dec 06 '18 at 16:40

1 Answers1

0

Proxy is the solution. But the proxy modules need to be loaded.

And since you are using htaccess, you cannot use ProxyPass. You are forced using RewriteRule with [P] flag.

ex:

RewriteEngine On
RewriteRule ^/intro$ https://example.com/januaryintro.php [L,P]

ProxyPassReverse / https://example.com/januaryintro.php

References:

Nic3500
  • 8,144
  • 10
  • 29
  • 40
  • Did not work. ProxyPassReverse resulted in an error. – Ron Dec 07 '18 at 02:08
  • I never mind negative comments. They are often the most useful. So looking around, I found url masking with htaccess. Didn't totally solve my issues but definitely better. – Ron Dec 07 '18 at 18:54