Forum Moderators: phranque

Message Too Old, No Replies

301 wont redirect

thing before renaming files

         

kngjason

4:28 pm on Apr 6, 2011 (gmt 0)

10+ Year Member



Ok only first things first hi to all.

i played at building a website which was more a learning experience then anything im a plasterer by trade so i use a pc as neccesity only.

i done all i could to submit to google promote site etc but i used unthoughtful filenames which has not helped my world domination of the SEO market. So i took all my lesson's, updated bits and bobs around my site changing content etc, but also changing my file names to some of my keywords which i had read from you gurus was a good idea. hence now has lead me to seek guidence from the web guru's on this here forum.

my old site has been indexed using old file names i want to redirect earlier efforts to my new effort if yer catch me drift. i tried using 301 but it apparently does not like my file structure of leaving spaces, which it fills with %20 which i was trying to rectify with new file names.

ok so i want to redirect from my link in google www.aplasteringcourse.co.uk/ 6%20Week%20NVQ%20Fibrous%20Plastering%20Courses.html to my new page [aplasteringcourse.co.uk...] . Can it be done and how? god darn it

jdMorgan

8:56 pm on Apr 6, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> i tried using 301

Please post your code as a basis for discussion -- We rather need to see where you might have got it wrong...

Jim

Demaestro

9:06 pm on Apr 6, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



jason,

You can do this, but as jd points out we need a snippet of what you tried and where you tried it.

I can tell you that if you aren't working in .htaccess then you may be on the wrong path.

kngjason

12:58 pm on Apr 8, 2011 (gmt 0)

10+ Year Member


Sorry for delay,

here is the code i am using in the .htacess file. Redirect 301 /6%20Week%20NVQ%20Fibrous%20Plastering%20Courses.html http://www.aplasteringcourse.co.uk/plasterer-plastering-courses-essex.html

[1][[b]edited by[/b]: kngjason at 1:38 pm (utc) on Apr 8, 2011][/1]

kngjason

1:35 pm on Apr 8, 2011 (gmt 0)

10+ Year Member



Redirect 301 /6%20Week%20NVQ%20Fibrous%20Plastering%20Courses.html [aplasteringcourse.co.uk...]


code is all one one line

g1smd

2:58 pm on Apr 8, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Use example.com to stop forum auto-linking.

There's more power in using
RewriteRule
instead of Redirect. Make sure to add the [R=301,L] flags.

The space can be matched by escaping it.

RewriteRule ^old\ url\ path$ http://www.example.com/new-url-path [R=301,L]


Avoid spaces and underscores in URLs.