Jump to content

alainB

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by alainB

  1. Well, I couldn't do it properly. I would appreciate some more help please.

     

    1. If I understood well, i have to write: RedirectPermanent /domaine-du-mas-sangha.html /location-vacances-argeles-sur-mer-piscine-jardin.html
    2. WHERE do I write it?

    I have 2 .htaccess files, one of them in my CMS folder (wordpress). The page I want to redirect is on my CMS.

     

    This is my first .htaccess :

     

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
    AddType video/mp4 .mp4
    ErrorDocument 404 /index.php
    # Disable server signature ServerSignature Off
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    And this is my second .htaccess (the one in CMS)

    # BEGIN WorldPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /blog/

    RewriteRule ^index\.php$ - [L]

    Rewrite Cond %{REQUEST_FILENAME} !-f

    Rewrite Cond %{REQUEST_FILENAME} !-d

    Rewrite Rule . /blog/index.php [L]

    </IfModule>​

    # END WorldPress

     

    and now.....I'm LOST!! lol :umnik2:

    In wich .htaccess am i supposed to write my line? the 1st one? the cms one? both??

    where I write it IN the .htaccess? 1st line? Under a specific line? Am I supposed to replace Something? or delete Something??

     

    Thanks for your help guys!!

  2. Sorry, I couldn't do it well. So maybe can I show here what I have exactly?

     

    My .htaccess

     

    # BEGIN WorldPress

     

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /blog/

    RewriteRule ^index\.php$ - [L]

    Rewrite Cond %{REQUEST_FILENAME} !-f

    Rewrite Cond %{REQUEST_FILENAME} !-d

    Rewrite Rule . /blog/index.php [L]

    </IfModule>

    # END WorldPress

     

    The same page:

    old url = http://www.loveyourstay.com/blog/property/domaine-du-mas-sangha/

    new url = http://www.loveyourstay.com/blog/property/location-vacances-argeles-sur-mer-piscine-jardin/

     

    1/ So, the problem of course is that people who kept the old link arrive on a 404 error "page not found" . I would like they arrive on the good one.

    2/ I would like to keep the PageRank etc

    2/ Is it possible that Google don't show anymore the obsolete page in the results, but only the new one ? If yes, how to do it?

     

    Sorry, but I never did that before and I must admit I'm a quite lost! :facepalm:

    Can you please write what I'm exactly supposed to write? (for example I don't know if I'm supposed to use a <IfModule mod_alias.c> ...)

     

    Thanks so much!

  3. Hi,

     

    I changed some URLs and now, I have the 404 errors "page not found" using some links.

    Please, don't throw tomatoes or eggs on me, I know: I was stupid to do that, sorry! :facepalm:

     

    I kept the old URLs names. Can I fix it? With a 301 redirection? (I never did that and not sure how to do) or something else?

    I have 3 pages like that, on WordPress.

     

    Can i add some code somewhere? and if some people saved the old link, they arrive on the new URL?

     

    Thanks for your help!! :good:

×
×
  • Create New...