FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


only .htaccess instead of mod_rewrite





jasperlevink
Hello Folks!

I started a topic about this subject last week. But it got locked and I really don't have a clue why. Maybe the mod thought it would be easy to find but I can't!

As many of you know there is a module within apache that supports the rewriting of urls. Urls like www.mydomain.com/index.php?page=5 are rewritten to www.mydomain.com/index/page/5.php which is far more search engine friendly.

I know that you need to configure a .htaccess file to configure this rewriting.

But my problem is that I can't enable the mod_rewrite module on my server. Someone told me that it might be possible without the mod_rewrite module. Everything you'd need is the .htaccess file. He sayd he thought it would be far more difficult to configure but possible.

But he couldn't really explain how. Can anyone tell me?

Thanks.
Jasper
mathiaus
It was me who closed it. I thought it was established it couldnt be done and people were pointlessly just posting links to mod_rewrite tutorials which wasnt what was being asked for.

Well mod_rewrite rules are configured in .htaccess as you just pointed out. .htaccess can redirect pages without mod_rewrite but it literally redirects so changes the url in the browser and such and therefore isnt the same.
jasperlevink
accidently I walked into this:
http://meta.wikimedia.org/wiki/Rewrite_Rules

They are talking about another way, without mod_rewrite. Is this rewriting or redirecting?
natut
Quote:

accidently I walked into this:
http://meta.wikimedia.org/wiki/Rewrite_Rules

They are talking about another way, without mod_rewrite. Is this rewriting or redirecting?


Hi, I came across "mod_rewrite" when I was asked to do some "web directory"..

Im not exactly a PHP expert but here is what I think is the difference.
{Mod_Rewrite}
URL are rewriten. This means the directory may/may not exist. For instance. The url
Code:
http://somesite.com/index.htm?id=2&file=2

can be equivalent to
Code:
http://somesite.com/id/file/

note that somesite.com may not have the subdirectory
Code:
root/id/file


{Redirecting} simply means what its name is. but you have to understand things should be directed to "something" (ie. some file or directory that actually exist)
Related topics
.htaccess instead of mod_rewrite
.htaccess i mod_rewrite
PHP and .htaccess
2 support request and 1 feature request
How to od URl cloaking?
adding another domain that points to my frihost hosting
How to "folder forward"?
Shortened URL path in php
Secure log in System
mod_rewrite
.htaccess and FTP
[SOLVED] Using mod_rewrite.
Google and Domains: help
75FRIH$ Mod_Rewrite Code
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.