var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Need help with mod_rewrite
I'm having a tough time getting my rewrite to work. I have the following URL in the following format:
I want to rewrite that to something static, like maybe:
I have the following code in my .htaccess, but it's not working:
RewriteRule ^/details/([^.]+)$ /details.php?image_id=$1
Nevermind, was not an issue with mod_rewrite, but an issue with the script I was using.
Here's what I use that's very similar:
RewriteRule ^([A-Za-z]+)$ $1/ [R]
RewriteRule ^([A-Za-z]+)/$ index.php?section=$1 [L]
It takes something like site.com/url and redirects it to site.com/url/
Then my second regex does the url rewriting.