URL rewriting

All about creating websites!
Post Reply
User avatar
z3r0aCc3Ss
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 700
Joined: 23 Jun 2009, 16:00
14
Contact:

URL rewriting

Post by z3r0aCc3Ss »

I am on windows (pathetic) server, and wanna implement URL rewriting. How do I do that?
Windows server cannot understand .htaccess file. Where should I write the code for URL rewriting? Also, is the rewriting in linux is same as that of in windows server?
Please brief me on this issue.
Beta tester for major RATs, all kinds of stealers and keyloggers.
Learning NMAP

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Re: URL rewriting

Post by ayu »

The htaccess file does not have anything to do with the OS, it will work under Windows in Apache as well.

What web server are you using?
I will assume IIS since you can't use htaccess?
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: URL rewriting

Post by bad_brain »

well, first of all the needed module has to be installed on the server:
http://www.iis.net/downloads/microsoft/url-rewrite" onclick="window.open(this.href);return false;

if it isn't: no chance.

if it IS installed here you can find examples of how to use it:
http://www.iis.net/learn/extensions/url ... ite-module" onclick="window.open(this.href);return false;
Image

User avatar
z3r0aCc3Ss
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 700
Joined: 23 Jun 2009, 16:00
14
Contact:

Re: URL rewriting

Post by z3r0aCc3Ss »

cats wrote:The htaccess file does not have anything to do with the OS, it will work under Windows in Apache as well.

What web server are you using?
I will assume IIS since you can't use htaccess?

Code: Select all

http://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/
Just check the above link (Platform and Tools section).
Indeed, I have to install a module, as b_b said. But I guess, I don't have access to that level.
So, what to do now?
But I guess, htaccess is linux specific? No???
And yeah, U r correct. I have IIS 7.5 installed. That's the reason may be I am unable to cope up with htaccess.
Beta tester for major RATs, all kinds of stealers and keyloggers.
Learning NMAP

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: URL rewriting

Post by bad_brain »

well, IIS can NOT utilize .htaccess, the IIS version of .htaccess is web.config, the syntax is of course also different there.
without the rewrite module I only see one option: setting up aliases on domain level....if that's a solution of course depends on what you actually want to do. pretty URLs will of course not work with it, because it only applies to links and not to the actual URLs.
Image

User avatar
z3r0aCc3Ss
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 700
Joined: 23 Jun 2009, 16:00
14
Contact:

Re: URL rewriting

Post by z3r0aCc3Ss »

@b_b, can you please show me one example on how to rewrite?
If I'm not wrong, its in web.config file.
I googled about it, but no luck. Just a simple working example.
Beta tester for major RATs, all kinds of stealers and keyloggers.
Learning NMAP

User avatar
maboroshi
Dr. Mab
Dr. Mab
Posts: 1624
Joined: 28 Aug 2005, 16:00
18

Re: URL rewriting

Post by maboroshi »

Here's an example which may help you

Code: Select all

http://stackoverflow.com/questions/4410067/iis-url-rewrite-and-web-config-question

User avatar
z3r0aCc3Ss
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 700
Joined: 23 Jun 2009, 16:00
14
Contact:

Re: URL rewriting

Post by z3r0aCc3Ss »

Thank you so much maboroshi... :)
Beta tester for major RATs, all kinds of stealers and keyloggers.
Learning NMAP

Post Reply