T
T
theEternalStudent2016-07-15 16:32:12
Apache HTTP Server
theEternalStudent, 2016-07-15 16:32:12

How to write a 303 redirect rule in htaccess?

How to write a 303 redirect rule in htaccess?
Update: the problem seems to be in the server settings, since everything works on the local via 303 redirect in htaccess.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
IceJOKER, 2016-07-15
@IceJOKER

RewriteEngine on
RewriteRule ^old.html$ new.html [R=303]

I
Ilya, 2016-07-15
Hrebet @hrebet

htaccess is important in this case?
You can use routing in Laravel, let's say:

Route::get('foo', function(){ 
  return Redirect::to('/bar', 303); 
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question