07-07-2019, 05:31 PM
Hello everyone,
I currently use my website as www.abc.in i would like to migrate my domain to www.xyz.in/blog but i face with 500 error.
In config.php the value of base_dir is:
$config['base_url'] = "http://".$_SERVER['HTTP_HOST']."/";
And i change .htaccess as below:
[font=.SF UI Text][font=.SFUIText]<IfModule mod_rewrite.c>[/font][/font]
[font=.SF UI Text][font=.SFUIText]Rewrite Engine on[/font][/font]
[font=.SF UI Text][font=.SFUIText]RewriteBase /[/font][/font]
[font=.SF UI Text][font=.SFUIText]RewriteCond $ 1! ^ (Index \ .php | images | captcha | css | js | resources | robots \ .txt)[/font][/font]
[font=.SF UI Text][font=.SFUIText]RewriteCond% {REQUEST_FILENAME}! -F[/font][/font]
[font=.SF UI Text][font=.SFUIText]RewriteCond% {REQUEST_FILENAME}! -D[/font][/font]
[font=.SF UI Text][font=.SFUIText]RewriteRule ^ (. *) $ Index.php? / $ 1 [L, QSA][/font][/font]
[font=.SF UI Text][font=.SFUIText]RewriteCond% {HTTP_HOST}! ^ Www \ .xyz \ .in \ \blog[/font][/font]
[font=.SF UI Text][font=.SFUIText]RewriteRule ^ (. *) Http://www.xyz.in/blog/$1 [QSA, L, R = 301][/font][/font]
I currently use my website as www.abc.in i would like to migrate my domain to www.xyz.in/blog but i face with 500 error.
In config.php the value of base_dir is:
$config['base_url'] = "http://".$_SERVER['HTTP_HOST']."/";
And i change .htaccess as below:
[font=.SF UI Text][font=.SFUIText]<IfModule mod_rewrite.c>[/font][/font]
[font=.SF UI Text][font=.SFUIText]Rewrite Engine on[/font][/font]
[font=.SF UI Text][font=.SFUIText]RewriteBase /[/font][/font]
[font=.SF UI Text][font=.SFUIText]RewriteCond $ 1! ^ (Index \ .php | images | captcha | css | js | resources | robots \ .txt)[/font][/font]
[font=.SF UI Text][font=.SFUIText]RewriteCond% {REQUEST_FILENAME}! -F[/font][/font]
[font=.SF UI Text][font=.SFUIText]RewriteCond% {REQUEST_FILENAME}! -D[/font][/font]
[font=.SF UI Text][font=.SFUIText]RewriteRule ^ (. *) $ Index.php? / $ 1 [L, QSA][/font][/font]
[font=.SF UI Text][font=.SFUIText]RewriteCond% {HTTP_HOST}! ^ Www \ .xyz \ .in \ \blog[/font][/font]
[font=.SF UI Text][font=.SFUIText]RewriteRule ^ (. *) Http://www.xyz.in/blog/$1 [QSA, L, R = 301][/font][/font]