Hello.
I am still trying to get a better hold on RewriteCond syntex for mod_rewrite.
I use this to check if a URL ends with "go=1" (thanks, caterham_www)
RewriteCond %{QUERY_STR...
http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_21317074.htm...
Hi experts,
I was confronted with the following RewriteRule:
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$
No problem with the inner three matching a file suffix, but to me the...
http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_21968476.htm...
RewriteCond %{REQUEST_URI} ^(.*)//$
RewriteRule . http://www.doublespark.co.uk/$1 [R=301]
RewriteCond %{REQUEST_URI} ^(.*)/,$
RewriteRule . http://www.doublespark.co.uk/$1 [R=301]
Thanks,
...
http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_22981278.htm...
I have a blogging script that takes GET input. an example might be ?u in the first example.
user.domain.com shoudl be rewritten to user.domain.com?u=user for instance.
I have been told that...
http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_21352039.htm...
I want to allow http://ANYTHINGHERE.example.com to link the images...but nothing else. ie. Any sub-domain including the root www. What do i need to change?
RewriteEngine On
RewriteCond %{HTTP_R...
http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_21475763.htm...
Dear Experts,
I need to create a RewriteRule based on a few conditions.
Let's assume I have a script called deliver.php. The script accepts a single parameter, namely what. I can call the scr...
http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_21505861.htm...
Several .htaccess questions:
1) How can I add trailing slash in all cases unless a file extension is shown (or is it better to strip trailing slashes always?)
2) Do RewriteConds accumulate? ...
http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_21602668.htm...
While this works as I'd expect (rewrites http://www.whatever.com/BLAH to http://www.whatever.com/test.php):
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^...
http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_21904002.htm...
Hi, I need help to understand how RewriteCond works
RewriteRule ^([^/]+)/([^/]+) /index1.php?p=$1&NewsID=$2 [NC]
causes the url
mysite/news/NewsID=1
to display as
mysite/news/12 (where 12 i...
http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_24435274.htm...
RewriteCond %{QUERY_STRING} Mpage=13 is treated as though Mpage=1 (i.e., the trailing "3" in the integer "13" is dropped or ignored)
I tried these but they also did not work:
RewriteCond %{QUER...
http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Apache/Q_24674180.htm...