alainB
-
Posts
7 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by alainB
-
-
@dsonesuk : I did, but, as I said, I'm not sure about my code, and about the place to write it - in any htaccess -. I did like 20 tries, using different "ways", but I was unsuccessfull... It's why I asked for help with more détails...
-
Well, I couldn't do it properly. I would appreciate some more help please.
- If I understood well, i have to write: RedirectPermanent /domaine-du-mas-sangha.html /location-vacances-argeles-sur-mer-piscine-jardin.html
- 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 OnRewriteCond %{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 WordPressAnd 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
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!!
-
ok thanks!
-
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!
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!
-
ok, and what should I write?
I sthat something like : bla bla bla "old url" bla bla bla "new url" ?
Somebody can show me the text/code I must use please?
Thanks!!!
-
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!
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!!
Changed URLs & have 404 errors. How to fix it?
in General
Posted
@justsomeguy : Thanks for the details, it works perfectly now!! You saved me, I was almost going to throw my computer threw the window!! lol. Thanks again.