[Xerte-dev] .htaccess rules

Ron Mitchell ronm at mitchellmedia.co.uk
Tue Nov 20 21:42:08 GMT 2012


Hi all

been struggling a bit with the .htaccess and additional lines needed for the
html5 rss to work with shorter urls e.g. with apache set to true

The full url's still work but I guess there must be a way to get this to
work as shorter url's too...

 

this

rewriteRule
^RSS/([A-Z][A-Za-z\'\-]?[A-Za-z\'\-]+_[A-Z][A-Za-z\'\-]?[A-Za-z\'\-]+)/([A-Z
a-z0-9_]+)/$ /xot/rss.php?username=$1&folder_name=$2

works fine and results in something like

http://server/xot/RSS/firstname_lastname/foldername/

 

how do I add another line to rewrite

http://server/xot/rss.php?username=firstname_lastname&folder_name=foldername
&html5=true

to become something like

http://server/xot/RSS/firstname_lastname/foldername/html5/

 

e.g. what's missing from the following?

rewriteRule
^RSS/([A-Z][A-Za-z\'\-]?[A-Za-z\'\-]+_[A-Z][A-Za-z\'\-]?[A-Za-z\'\-]+)/([A-Z
a-z0-9_]+)/$ /xot/rss.php?username=$1&folder_name=$2&html5=$3

 

likewise what do I need to add to the following?

rewriteRule
^RSS/([A-Z][A-Za-z\'\-]?[A-Za-z\'\-]+_[A-Z][A-Za-z\'\-]?[A-Za-z\'\-]+)/$
/xot/rss.php?username=$1&html5=$2

 

Cheers

Ron

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20121120/18f26d1f/attachment-0001.html>


More information about the Xerte-dev mailing list