Hello, I have a problem that is driving me crazy
Redirect problem
5
Hello,
I have a problem that is driving me crazy
I have redirected a folder in one domain to a html file in some other domain using .htaccess like this:
www,domain,com/folder
to
www, newdomain, com/file.html
the redirect is working fine but it ads a / at the end of the html file
so after the redirection it looks like this:
www,newdomain,com/file.hml/
the problem is that it says that page can't be viewed and the problem is the / at the end of it
when i remove the / at the end then it works
what can i do to make my pages work with / and without / equally?
the code i've used for the redirect is:
RewriteCond %{HTTP_HOST} ^www,domain.com$
RewriteRule ^book\/?$ "http\:\/\/www\.newdomain\.com\/how\-to\-bla\.html" [R=301,L]
have googled this but didn't find anything...and i don't even know why this redirect code leaves a / at the end
Thanks a lot for the help
Best,
B
I have a problem that is driving me crazy
I have redirected a folder in one domain to a html file in some other domain using .htaccess like this:
www,domain,com/folder
to
www, newdomain, com/file.html
the redirect is working fine but it ads a / at the end of the html file
so after the redirection it looks like this:
www,newdomain,com/file.hml/
the problem is that it says that page can't be viewed and the problem is the / at the end of it
when i remove the / at the end then it works
what can i do to make my pages work with / and without / equally?
the code i've used for the redirect is:
RewriteCond %{HTTP_HOST} ^www,domain.com$
RewriteRule ^book\/?$ "http\:\/\/www\.newdomain\.com\/how\-to\-bla\.html" [R=301,L]
have googled this but didn't find anything...and i don't even know why this redirect code leaves a / at the end
Thanks a lot for the help
Best,
B
- nevadasoft
- ExpertsGuide
- kevinfurtadoos5
- cyphix
Next Topics on Trending Feed
-
5