Yii2: how to redirect old URLs with 301? – SEO
I have some URLs from the old version of my site that I want to redirect to their new ones in Yii2 due to SEO purposes, eg. /about-us.php to /about. How do I do that? I can't use .htaccess, and…
I have some URLs from the old version of my site that I want to redirect to their new ones in Yii2 due to SEO purposes, eg. /about-us.php to /about. How do I do that? I can't use .htaccess, and…
Assuming we have a page with random seo friendly url like /some/page.html How to describe rules for urlManager in config that specifies condition in where if standard rote (e.g. SomeController with actionPage) does not exitsts than performs the specified default…
The YII2 basic app is installed under localhost in 'ims' folder.The links are like http://192.168.0.99/ims/web/ (homepage) http://192.168.0.99/ims/web/index.php?r=site%2Fabout (about us page) So far what i have done is. 1) in web/.htaccess file Options +FollowSymLinks IndexIgnore */* RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f…