I m trying to redirect 403 forbidden url to homepage but not able to redirect.
Here is what i have tried in .htaccess
Redirect /ru-1/.html https:://test.com
But it't not working i did same for othere URL and it was worked.
I think the problem is /.html part it is without prefix page name.
can anyone please guide me on this.
Related
I have a site which you can access with or without https rule. So, I need to make a redirect to another page. Example:
My website is: www.google.com so I can access by the moment as https://www.google.com and http://www.google.com but I need when you get into my website trough http or https way you must have to redirect to www.yahoo.com.
Besides I need the url redirection too to any subdomain or url which exists in http://www.google.com or https://www.google.com
How can I do this? I have no found alredy information about it in S.O. Thanks.
Very simple. You can use the following Redirect in your htaccess to redirect all requests from your site to the other domain
RedirectMatch 301 / http://yahoo.com/
I have a URL http://domain.com/foo/bar/100. I want to remove /foo/bar from the URL without redirecting it.
Please help me with this problem as I am new for htaccess.
is this URL created by .htaccess rules?
if not: change your document root or add a location directive to the server.
I tried to put a redirect in a my website for CEO (Search Engine Friendly )
i put a code in .htaccess , then i checked here http://www.webconfs.com/redirect-check.php , so it said : (Found redirect to http://www.abosurfmorocco.com/. The Redirect is Search Engine Friendly.), but when i went to the website i got a Redirect Loop error in the browser, i deleted this code in .htaccess, i cleaned browser cookies , but i still can get to the website.
is there is way to resolve this problem , please
I think there is still a 301 Redirect. Check again if there isn't any .htaccess file.
Moved Permanently: http://www.abosurfmorocco.com/ --> http://www.abosurfmorocco.com
I need friendly URL only for some pages on my website, I added this code to htaccess
RewriteEngine On
RewriteRule languages/english-online.html languages/english.php
And now when I open in browser http://mydomain.com/languages/english-online.html I see the content of page "languages/english.php". It's OK
But I also want to do: if somebody tries to enter to http://mydomain.com/languages/english.php, he will be redirected to http://mydomain.com/languages/english-online.html
I've tried everything, I get or 500 error or nothing happends.
Please help
Did you try:
Redirect /languages/english.php http://mydomain.com/languages/english-online.html
Similar code worked for files on my own website.
I have two inbound links that land on 404 pages because the links are squiffy. I have tried 301'ing these links as normal but without success, I believe because of the characters used from this external URL.
Column<u>Radiators.html
is the page suggested on this external site and
Column_Radiators.html
is the actual page.
also
Bath%3Cu%3EFiller.html
on the external site and
Bath_Filler.html
on our actual website.
How can I succesfully redirect these pages?
Simply add these lines in your .htaccess
redirect 301 /Column<u>Radiators.html /index.html
redirect 301 /Bath<u>Filler.html /index.html
Note: I use index.html as the default redirection but you can use a custom 404.