Why this .htaccess with 1 variable won't work?
NickName:Motheus Ask DateTime:2013-01-22T16:43:49

Why this .htaccess with 1 variable won't work?

I'm trying to get this but i really don't know why won't work. I try to change things and params and won't work:

RewriteCond %{QUERY_STRING} board=([0-9]+).0
RewriteRule ^forum/index\.php$ index.php?option=/$1? [R=301,L]

url:
www.abc.com/forum/index.php?board=13.0

Copyright Notice:Content Author:「Motheus」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/14454558/why-this-htaccess-with-1-variable-wont-work

More about “Why this .htaccess with 1 variable won't work?” related questions

Why this .htaccess with 1 variable won't work?

I'm trying to get this but i really don't know why won't work. I try to change things and params and won't work: RewriteCond %{QUERY_STRING} board=([0-9]+).0 RewriteRule ^forum/index\.php$ index.php?

Show Detail

How to check if a variable is undefined in .htaccess?

I know I can set a custom variable in httpd.conf to be accessed in .htaccess. I want to make my code fool proof so when it is set in a new machine by a new programmer, it won't get error easily. H...

Show Detail

.htaccess | status.php?channel=VARIABLE to VARIABLE.png

I made a dynamic signature script, but some forums won't show it because it the URL ends with a .php and not with a image format. How can I make it that: www.mydomain.com/VARIABLE.png shows the co...

Show Detail

Why environment variable is not working in htaccess

I have this htaccess RewriteEngine On RewriteCond %{REQUEST_URI} /xxx.php$ [NC] RewriteRule ^.*$ - [ENV=MAKE_CACHE:true] <If "%{ENV:MAKE_CACHE} =~ /^true$/"> Header set CUSTOM_HEADER "...

Show Detail

Variable in .htaccess

How to set some variable in .htaccess, this part of .htaccess: # Prepend the file php_value auto_prepend_file "/home/admin/web/project/framework/host/redirect.php" php_value auto_prepend_file "/home/

Show Detail

.htaccess file won't work

I'm running my app in XAMPP with CodeIgniter. I have a .htaccess file that will not necessitate me anymore of including index.php in url but it won't work. The content of my .htaccess file is Op...

Show Detail

Why won't my macro variable resolve?

I have a macro variable, &myvar, but it won't resolve when I try to put it in a data step variable. Why won't it, and what can I do to fix this? %let myvar=Hello, world; data _null_; x='&

Show Detail

Why won't my macro variable resolve?

I have a macro variable, &myvar, but it won't resolve when I try to put it in a data step variable. Why won't it, and what can I do to fix this? %let myvar=Hello, world; data _null_; x='&

Show Detail

Why won't my macro variable resolve?

I have a macro variable, &myvar, but it won't resolve when I try to put it in a data step variable. Why won't it, and what can I do to fix this? %let myvar=Hello, world; data _null_; x='&

Show Detail

htaccess rewrite to include #!

Calling all .htaccess gurus. I need your help! I'm trying to force a rewrite to include #! in the urls. So basically I need. http://example.com/biography To be re-written to http://example.com/#!/

Show Detail