Trouble with a URL rewrite
5 posts
• Page 1 of 1
Trouble with a URL rewrite
Hello,
IM writting this rewrite
RewriteRule ^blog.html$ /blog [R=301,L]
it rewrites the name for the blog home page but if you click on a blog article it still resolves as http://www.website.com/blog.html/documentmanagement
I want it to remove the HTML even when selecting child pages.
IM writting this rewrite
RewriteRule ^blog.html$ /blog [R=301,L]
it rewrites the name for the blog home page but if you click on a blog article it still resolves as http://www.website.com/blog.html/documentmanagement
I want it to remove the HTML even when selecting child pages.
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Trouble with a URL rewrite
Hello,
Please, try using the following:
Regards
Andrew
Please, try using the following:
- Code: Select all
RewriteRule ^blog\.html(.*)$ /blog$1 [NC,R=301,L]
Regards
Andrew
Re: Trouble with a URL rewrite
Hello, ONe more thing. I have one page that is adding an extra path. How do I remove it, so
http://www.website.com/blog.html/blog/page/2
It needs to be
http://www.website.com/blog/page/2
Need to remove the html and the extra blog path. How will this rewrite be different than the one previously mentioned.
thanks,
http://www.website.com/blog.html/blog/page/2
It needs to be
http://www.website.com/blog/page/2
Need to remove the html and the extra blog path. How will this rewrite be different than the one previously mentioned.
thanks,
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests