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 :(

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

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.

no reply yet ?

Looking for solution.

Can you give me idea what was the old url ?

Would you try this in seperate lines, hope that will work

redirect 301 /oldpath http://www.yoursite.com/newpath/

[Add as new line in .htaccess]

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.