View previous topic :: View next topic |
Author |
Message |
Turtles -
Joined: 03 Aug 2010 Posts: 44
|
Posted: Fri May 02, 2014 8:39 am Post subject: URL Rewriting for Xenforo |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri May 02, 2014 3:30 pm Post subject: |
|
|
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/ |
|
Back to top |
|
|
|