Cory Booth
Well-known member
Yes, working fine now!..
Not sure if its just me but I cant seem to get the recent events module working. I imported it fine, added it to the portal but nothing is displayed and i currently have 2 events. I am using the latest XenAtendo v2.0 and same with the portal. Has anyone got this module working? cheers.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.potomacboaters\.com$ [NC]
RewriteRule ^.*$ [URL]http://potomacboaters.com%{REQUEST_URI[/URL]} [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data|js|styles|install) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
I had a bit of trouble myself.
Make sure you extend the number of days forward and also turn off the Steam Only checkbox (if this is relevant).
.htaccess assistance...
I am trying to redirect my .com to .com/portal/
Can anyone point out what I am doing wrong?
The previously mention 301 redirect doesn't work.
PHP:RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.potomacboaters\.com$ [NC] RewriteRule ^.*$ [URL]http://potomacboaters.com%{REQUEST_URI[/URL]} [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^(data|js|styles|install) - [NC,L] RewriteRule ^.*$ index.php [NC,L]
Do you have cpanel? If so just use that, there is a re-direct option in the control panel and its much quicker and easier. If not just google 301 re-direct youll find something that will work for you. Thats what i did but ive changed it so i dont have the original htaccess file anymore sorry.
Yeah I think it's because I have the www to non-www in there....
I'll keep looking...
RewriteEngine On
#.com to .com/portal/ (if non-friendly URLs - use .com/index.php?portal)
RewriteCond %{HTTP_HOST} ^yoursite.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.yoursite.com$
RewriteRule ^/?$ "http\:\/\/yoursite\.com\/portal\/" [R=301,L]
#www to non-www (remove if you don't want)
RewriteCond %{HTTP_HOST} ^www\.yoursite\.com$ [NC]
RewriteRule ^.*$ http://yoursite.com%{REQUEST_URI} [R=301,L]
#xenForo Redirects
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data|js|styles|install) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
lol yep thats why, I am in the EXACT same situation, as far as I know there isnt a fix without removing the 'code' to make www to non-www. I had to do this otherwise my FB login wouldnt work, also cleaner look without www. If i find a fix ill be sure to let you know, if you find one first let me know also cheers
FB Login doesn't work using the non-www entry?
Haven't noticed that although I have yet to start hitting the FB stuff just yet.
i reckon you should keep your rewrites separate..htaccess assistance...
I am trying to redirect my .com to .com/portal/
Can anyone point out what I am doing wrong?
The previously mention 301 redirect doesn't work.
PHP:RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.potomacboaters\.com$ [NC] RewriteRule ^.*$ [URL]http://potomacboaters.com%{REQUEST_URI[/URL]} [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^(data|js|styles|install) - [NC,L] RewriteRule ^.*$ index.php [NC,L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^xxxxx.net$ [NC]
RewriteRule ^(.*)$ http://xxxxx.net/$1 [L,R=301]
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
redirect 301 /index.php http://xxxxx.net/community/index.php?portal
</IfModule>
i reckon you should keep your rewrites separate.
what you are doing will only lead to pain. leave the default xenforo stuff alone, and add your stuff after it.
ie:
Code:<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^xxxxx.net$ [NC] RewriteRule ^(.*)$ http://xxxxx.net/$1 [L,R=301] </IfModule> <IfModule mod_rewrite.c> RewriteEngine On redirect 301 /index.php http://xxxxx.net/community/index.php?portal </IfModule>
I cant say thats a bug, but it diffentley was a issue for me and took a while to resolve, hope you have better luck.
We use essential cookies to make this site work, and optional cookies to enhance your experience.