I need mod_rewrite functionality on an IIS .NET server. Is http://www.isapirewrite.com/ the best option? It seems to have the largest documentation/user base. I also see codeplex.com/IIRF , this is free but comments mention it has a different syntax from .htaccess? I am very unfamiliar with IS .NET and would like to mimic Apache .htaccess, please advise.
I will be 301 redirecting, as well as canonicalizing urls.
I also see both ISAPI_Rewrite 2 and 3 both being sold for the same price. Why might I consider 2?
Thank you so much for your time, thoughts and help.
If you use ISAPI_Rewrite 3 it has almost identical syntax to mod_rewrite (see http://www.helicontech.com/isapi_rewrite/doc/compatibility.htm).
I've used it on a number of sites and am very happy with its performance and ease of use.
Josh
IIRF supports most of the same syntax as mod_rewrite's .htaccess, but some things are missing.
It works well .
The price is right.
Related
I had my VPS host enable mod_speling, but I'm not sure it's working, and just wanted to check with you guys that I've got the right idea about it.
I have URLs on the server like this:
https://www.example.com/users/TOMMO/
https://www.example.com/users/JULIE/
People that type URLs using all lower case are getting 404 errors, so I figured enabling mod_speling would fix it. This is what I have in .htaccess:
RewriteEngine On
CheckCaseOnly On
Should this be working?
The mod_speling documentation says this of CheckCaseOnly:
When set, this directive limits the action of the spelling correction to lower/upper case changes. Other potential corrections are not performed.
So that sounds pretty much like exactly what you want. If won't attempt to correct: https://www.mysite.com/users/juliee/ but it will ignore case when you go to https://www.mysite.com/users/JULIE/.
But if you're not using mod_rewrite, you don't need the RewriteEngine On line.
I'm trying to create friendly url for my site but with no success :(( and i have two questions
The first is:
How to change the url from domain.com/page/something.php to domain.com/something
And the second is:
Will the changes make duplicate content and if how to fix the problem.
Thank you for your time,
Have a nice day
Check out the official URL Rewriting guide: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
You'll be using the simplest use case, Canonical URLs. Assuming you have no other pages that you need to worry about, you can use a rule like this: (note: untested, your usage may vary)
RewriteRule ^/(.*)([^/]+)$ /$1$2.php
While that example might not exactly work for your use case, hopefully reading the guide and my example will help you get you on your way.
Is it possible realize SEF pagination on Ditto - MODx? How do it - in scripts / nginx configuration (or anyone know htaccess solution )
What means..
It's pages whith list of articles
/articles.php
/articles.php?start=10
....
So in result should be
/articles.php/start/10
or something like it
And realize correct redirect to SEF
I'm very grateful to you in advance.
If you're going to use Ditto, you won't be able to do this without modifying the snippet code to set up paging as you require.
However, I would argue that /articles.php/start/10 is no more search friendly than the original as both 'start' and '10' are in no way related to the content on those pages. Google and the other search engines are certainly capable of distinguishing between pages with different url parameters in this case, however if this remains an issue you might be better off exploring a different way to create your listings.
Have a look here for some useful insights:
http://googlewebmastercentral.blogspot.com/2011/09/pagination-with-relnext-and-relprev.html
http://www.seomoz.org/blog/pagination-best-practices-for-seo-user-experience
As title says. I am looking for some help with my .htaccess. I have been offered help on an apache forum however before i post my .htaccess for others to see i wondered if by doing this the security of my site could be compromised in any way??
Thanks
P
Maybe? It depends?
If you have something that includes a secure system path like the location of AuthUserFile, you might want to put in some dummy text before posting:
AuthUserFile /PATH_TO_FILE/
Most of the boiler plate stuff (ErrorDocument, hiding the .htaccess, -Indexes, etc...) though, wouldn't worry about it.
I'm looking for a trick to hide the .dll extension of an isapi dll in an url. I don't know if this is possible. but I preffer to hide it.
Example
www.mysite.com/test/myapp.dll/testfunction
would be
www.mysite.com/test/myapp/testfunction
Thank you very much
You may change the link on page to say ww.mysite.com/test/myapp/testfunction and use the following config with ISAPI_Rewrite 3:
RewriteBase/
RewriteRule ^test/myapp/testfunction$ /test/myapp.dll/testfunction [NC,L]
You can write ISAPI filter and change the URI as you like. There are, of course, ready commercial and free ones
This link may be of use
EDIT: The link above is actually confusing as I don't think it solves the problem at hand.
These two links
this One requires some coding,
this One requires some IIS Setup
In IIRF, a free URL rewriter for IIS5/6/7, you can do this:
RewriteRule ^/test/([^/]+)/([^/]+)$ /test/$1.dll/$2 [I,L]
This rule has wild-card matching on the DLL name and function.
Lots more possibilities, too.