-
- 834 Posts
Hi,
I have furls working that remove file extensions for most extensions, but not rss.
I have a lot of links just pointing to mysite/feed rather than mysite/feed.rss so I'd like to preserve that structure.
The .htaccess code is below. Can anyone tell me if there's an incorrect setting there or whatever else isn't right?
Thanks
<IfModule mod_security.c>
# Turn the filtering engine Off
SecFilterEngine Off
</IfModule>
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/hotbutto/public_html
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.makethemclick.com.au [NC]
RewriteRule ^(.*)$ http://makethemclick.com.au/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.makethemclick.biz [NC]
RewriteRule ^(.*)$ http://makethemclick.com.au/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.makethemclick.net [NC]
RewriteRule ^(.*)$ http://makethemclick.com.au/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^makethemclick.net [NC]
RewriteRule ^(.*)$ http://makethemclick.com.au/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^makethemclick.com.au/index [NC]
RewriteRule ^(.*)$ http://makethemclick.com.au/$1 [L,R=301]
#remove trailing slashes
RewriteCond %{HTTP_HOST} !^\.makethemclick\.com.au$ [NC]
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
# Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# Additional Settings Follow
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
BrowserMatch "MSIE" brokenvary=1
BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
BrowserMatch "Opera" !brokenvary
SetEnvIf brokenvary 1 force-no-vary
Content Creator and Copywriter
-
- 1,145 Posts
If it's just one file that needs to be changed, doesn't the MODx Content Types work for you in this scenario?
This is Revo right?
This works for me Systems / Content Types
I deleted the extension, dot and all.
Refreshed Site Cache, and republished my feed resource.
TinymceWrapper: Complete back/frontend content solution.
Harden your MODX site by
passwording your three main folders:
core, manager, connectors and renaming your
assets (thank me later!)
5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
-
- 834 Posts
Don,
half right.
It does show the page without the extension, but then the redirect for the page with .rss doesn't work.
IE If I go to mysite/feed I get the feed
If I try mysite/feed.rss I get the page not found.
Which is kinda the reverse of my original problem.
Content Creator and Copywriter
I'd look at using
Redirector instead of fussing with redirects. If you are going to be using lots of redirects it's faster than opening up .htaccess every time you need to create a rewrite. I'd use .htaccess if you are needing to do regex pattern matching.
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
-
- 834 Posts
Jay,
yeh I tried Redirector, didn't do anything.
I also looked at VirtualAliases, but that doesn't seem to be supported anymore.
.htaccess is the fallback option.
Content Creator and Copywriter