URL Rewriting for Xenforo

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
Turtles
-


Joined: 03 Aug 2010
Posts: 42

PostPosted: Fri May 02, 2014 8:39 am    Post subject: URL Rewriting for Xenforo Reply with quote

I can't use "Full Friendly URLs" for Xenforo (bulletin board software) because its rewrite rules aren't compatible with AWS.

Any chance you can expand the rewrite system so its compatible with more mod_rewrite rules?

These are the rules im trying to convert:

Quote:
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]


P.S. I tried Trust Abyss's rewrite scanner but it only detected 1 compatible rewrite rule and that rewrite rule doesnt enable me to use "Full Friendly URLs".
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3718
Location: USA, GA

PostPosted: Fri May 02, 2014 3:30 pm    Post subject: Reply with quote

The rules that point to "-" are ignored by AWS:MRT because Abyss does not use these so-called dummy rules. They just instruct Apache to ignore the rule from what I understand. I am looking more into this problem.

UPDATE: 5/2/2014 @ 12:47 EST It turns out you might be able to use this with Abyss. The rules just remove index.php from the end of the URL, creating the illusion of full friendly URLs. With Abyss as well as other servers, queries to scripts can look like site.com/index.php/apps/files. All these rules do is remove the index.php if the resource does not already exist.

Try running these through AWS:MRT and see if it works. I do not have the script to test so this is just a guess.
Code:

RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule ^.*$ index.php [NC,L]


UPDATE: 5/2/2014 @ 12:34 EST This forum topic explains it. Unfortunately, I don't think this will work with Abyss Web Server. Perhaps Aprelium can shed some light on things?
http://xenforo.com/community/threads/the-default-htaccess-file.47906/
_________________
Computer Programmer & Networking Specialist

Back to top View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group