how to make redirect from mysite.ru/index.php to mysite.ru/ for main page?
PS
I'm using fancy URLS
PS
I'm using fancy URLS
QUESTION index.php to /
|
how to make redirect from mysite.ru/index.php to mysite.ru/ for main page?
PS I'm using fancy URLS
2016-02-07, 06:42:06
Code: RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ This works fine.
2016-02-08, 08:16:45
Normally you don't see index.php in the url, so I don't see why you would need that.
2016-02-09, 00:59:08
So people cant bookmark or use old urls that are not fancy.
This is a method of forcing canonical urls, it might be wise to modify that regex to also pass the id? arguments as a second pathing id also or whatever your permalink structure is index.php?id /id/ |
« Next Oldest | Next Newest »
|