0

Below is code as of now in my .htaccess

RewriteRule ^series/([^/]*)-([^/]*)-schedule-fixtures\.php$ /viewseries.php?id=$1 [L]
RewriteRule ^schedule/([^/]*)-([^/]*)\.php$ /viewschedule.php?id=$1 [L]
RewriteRule ^venue/([^/]*)\.php$ /viewvenue.php?vcity=$1 [L]
RewriteRule ^team/([^/]*)\.php$ /viewteam.php?team=$1 [L]
RewriteRule ^month/([^/]*)\.php$ /viewmonth.php?month=$1 [L]

Now, Problem is that it doesn't show redirect 301 to google or anyone other.

Can you tell what should I do to show redirect message to google.

I tried adding R=301 but that redirected to wrong url :(

2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by it200219
0

When I add [R=301,NC] at the back,

url redirect as follow.

/viewschedule.php?id=$1 redirects to /viewschedule.php?id=$1-blah-blah-blah

Edited by phphit: n/a

0

Sorry my second post is somewhat wrong,
Below is a problem i face.

I know I need to put R=301 to make Google aware about permanent redirect.

When I add [R=301,NC] at the back,

url redirect as follow.

/schedule/126-blah-blah.php redirects to /viewschedule.php?id=126-blah-blah-blah

Code with R=301 rewrite perfectly but it doesn't show redirect to google.

Edited by phphit: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.