B
B
BonBon Slick2016-08-16 11:50:28
proxy
BonBon Slick, 2016-08-16 11:50:28

How to change url view without redirect?

I tried with mod_rewrite, only it redirects permanently...
Sample code

Allow from all
Options FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteRule ^([a-zA-Z]+)/([a-zA-Z]+)/home.php$  home/ [R=301,L, NC]

RewriteCond %{REQUEST_FILENAME} !-d  
RewriteCond %{REQUEST_FILENAME} !-f

It is necessary that the link does not work in the same way, only it was short, changed from http://blog/view/site/home.phptohttp://blog/home

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2016-05-06
@alsopub

Google "proxy auto rotate" and take your pick.

P
Pretor DH, 2016-08-16
@PretorDH

You're doing it wrong in the first place. The client should call blog/home. And .htaccess recode it into a *.php call.
And you can change the client call address only with a redirect, there is no other way - You need to change the http/https header.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question