![]() |
.htaccess rules redirects
Hi, I liked to redirect my non www. urls of my homepage to the www. urls
Ex http://nihonomaru.com/ should redirect to http://www.nihonomaru.com/ However, when i applied this rule to the .htaccess RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] It is working but now on my forum, where i host my images on lightspeed, img1 subdomain, the images aren't appearing because they also get redirected i.e., img1 gets redirected to www.img1 See http://img1.nihonomaru.com/lighttpd/...edals/1231.gif How can i apply an exclusion rule so the redirect doesn't not affect sub-domains? Or for only to apply the redirect for the homepage pages only? Code:
<IfModule mod_rewrite.c> |
Try
Code:
RewriteEngine On |
Hi vBNinja,
I added it to my .htaccess but I see an internal server error message. Quote:
Code:
<IfModule mod_rewrite.c> |
Here you go.
Code:
### BEGIN CLOUDFLARE REWRITE (domainB.com to www.domainB) |
Quote:
Hi, why identifying it as specifically redirect everything on port 80 to the http URL? |
Side Note: You have a 404 missing or incorrectly named image here:
HTML Code:
URL: http://forum.nihonomaru.com/images/styles/OrangeTheme/style/headerBG.gif |
Not too sure if that matters too much but that's what I've come up with after browsing through several tutorials & articles.
Also I realize that this plugin is a vb3 plugin but it still seems to get the job done in vb4 as well (I've used it for a couple of years now). https://vborg.vbsupport.ru/showthread.php?t=222898 Quote:
|
Quote:
I can't seem to find where this url is in the template. Code:
#headerMain { Quote:
I don't really have an issue with my forum url, it is working perfectly, my issue is for the sub domain img1 which is lightspeed that is hosting my forum images. |
Sorry about that, been posting while I'm half awake over here.
Try this solution. http://stackoverflow.com/questions/1...ailing-slashes |
We can check it tomorrow :) thanks for your help!
I tried it but it didn't work: Code:
<IfModule mod_rewrite.c> I also added this part as well and it didn't work, unless i did something wrong Code:
#Remove trailing slash |
All times are GMT. The time now is 03:20 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|