Why redirected?

RewriteEngine On
RewriteRule ^([a-z]+)$ /index.php?getcontent=$1 [L,NC]

The task is that all the queries of the form
https://test.logrel.xyz/form
* https://test.logrel.xyz/[letters only][end of line]

led to the fact that the user issued the content from the appropriate folder in the frame. In this case, the folder form
Therefore .htaccess written two such lines in the file /index.php prescribed
<iframe src="/<?=$_GET['getcontent'];?>/" frameborder="0"></iframe>

Also there is a folder form which contains a file index.html

But when asked to https://test.logrel.xyz/form I get a 301 redirect to https://test.logrel.xyz/form/?getcontent=form

Why?
April 3rd 20 at 18:38
1 answer
April 3rd 20 at 18:40
1. try a php proxy instead of iframe str_replace will help you deal with the cons of the iframe ( if that's even necessary), again, is not 301
but I don't really understand why your content iframe to give?
give really the task itself
The problem is that the content is not stealing.
Typeset the page lay out for viewing.
And someone takes and copies the entire layout and styles and places on the server.
The task is to do here www.hankoschroeder.de
The calculator is loaded in a frame.
But if we go to https://www.qualisiegler.de/badrechner/qsbc.ext.php get
Sie sind nicht berechtigt diesen einzubinden Badrechner.

And the task was to make the same calculator.
https://test.logreel.xyz/form.html I did and the customer just copied it and disappeared.
The money is not paid. - maymie.Cummerata commented on April 3rd 20 at 18:43
That is, you just need to hide the source code. - maymie.Cummerata commented on April 3rd 20 at 18:46
the calculator and you cannot steal it in php
on the website it displays only the html
You can verify by copying the dom actual slider and try it somewhere to insert
also get nothing because the code of slider is also different from the real code.
blaze is not visible at all - Agnes.Howe commented on April 3rd 20 at 18:49
@Agnes.Howe, it is not in php it in pure js.
In addition to the code you need to download again the file library.js
https://test.logreel.xyz/library.js - maymie.Cummerata commented on April 3rd 20 at 18:52
@Agnes.Howe, I know better because I wrote it)) - maymie.Cummerata commented on April 3rd 20 at 18:55

Find more questions by tags Apachehtaccess