After working with the many examples that you gave me, I found that this works...
RewriteRule ^(.+)\.html?$ /$1.php [R=301,NC]
RewriteRule ^NTrak/(.+)$ /$1 [R=301,NC]
Thanks Olaf for your help.
Thanks, I will try this later today.
One question I still have.
Can I run two rules one after the other.
Would this be the best way?
These would say in all requests that have "/NTrak/" I want it gone.
This would be every url, be it for an htm, pdf, jpg, etc.
Then the next rule would just...
RewriteRule ^.+\/(.*)\.htm$ /$1.php [R=301,NC]
This is stripping all subdirectories.
so www.domain.com/NTrak/sub1/index.htm becomes www.domain.com/index.htm
getting close...
This is on a hosting service that I do not have access to apache logs.
One other thing, can HTML and HTM both be in...
I now have this...
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^[.+/](.*)\.htm$ http://domain.com/$1.php [R=301,NC]
This does not do anything to url, including not stripping "NTrak
I now have this
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^NTrak/(.*)$ /$1 [R=301,NC]
RewriteRule ^[.+/](.*)\.htm$ http://www.domain.com$1.php [R=301,NC]
This strips the "NTrak" from the url, but does nothing with the htm to php part.
I think the problem is running two rules, but I...
Let me start by saying I know next to nothing about servers and htaccess.
I am trying to combine two major site changes by using htaccess.
This is so all old bookmarks and Search engine links don't break.
First off all the htm and html files have been changed to php.
Secondly the website was...
I have a listbox on a form and have the multicolumn set to true. I would like to know if and when the horizontal scrollbar becomes visible when I am adding items to it in code. I can not seem to find an answer to this. Seems to me that there would be property, ScrollbarVisible, to test.
Dim...
I don't know the reason, but I have IE11 and when I tell it to run as IE8 I get that same message. Must be something they are testing for that fails to pass in IE8
Would this work for you?
Dim N As Integer = ItemToRemove
'assumes N is the position In Array to remove
For i As Integer = N To UBound(YourArray) - 1
YourArray(i) = YourArray(i + 1)
Next
ReDim Preserve YourArray(UBound(YourArray) - 1)
Just learning VB2010 after many years in VB6. I was wondering if there is a way to move a System.Drawing.Graphic on top of another after they have been drawn. All I can conclude at this time is that they stay in the order that they are created.
I have an array of graphics. My drawing is done...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.