URL rewirte and redirect problem
4
Hello
I am try to redirect my dynamic URL to static URL.
I write some code in .htaccess
My .htaccess code
Options +FollowSymLinks
RewriteEngine on
RewriteRule bollywood-film-(.*)-(.*)\.html$ bollywood-film-page.php?film_id=$1&film_name=$2
My dynamic URL is
aamir [2008] | zziapex[2008]
and after rewrite my URL
is
aamir [2008] | zziapex
but now problem is
i am not able to redirect my dynamic URL to static URL
i am using this code to redirect my URL
$fack_URl = "bollywood-film-".$film_id . "-" .$film_name. ".html";
header("Location: $fack_URl");
can one help me?
to redirect my dynamic URL to static URL
I am try to redirect my dynamic URL to static URL.
I write some code in .htaccess
My .htaccess code
Options +FollowSymLinks
RewriteEngine on
RewriteRule bollywood-film-(.*)-(.*)\.html$ bollywood-film-page.php?film_id=$1&film_name=$2
My dynamic URL is
aamir [2008] | zziapex[2008]
and after rewrite my URL
is
aamir [2008] | zziapex
but now problem is
i am not able to redirect my dynamic URL to static URL
i am using this code to redirect my URL
$fack_URl = "bollywood-film-".$film_id . "-" .$film_name. ".html";
header("Location: $fack_URl");
can one help me?
to redirect my dynamic URL to static URL
- Nathan Joshua
- phpg
- [1] reply
- Earnie Boyd
Next Topics on Trending Feed
-
4