Unfortunatelly, rewrting rule in .htaccess file in main directory;
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
didn't work for me on my localhost (windows-AppServ2.0) and my ISP account (linux) the same way as on drupal.org.
In place of http://domain.org/node/view/1 it gives http://www.domain.com/?q=node/view/1 adress.
Because of indexing in search engines reasons I would like to have it working like in drupal.org.
The best rewriting rule (because of indexing reasons) wouldbe http://www.domain.com/view1.htm.
Adding meta field (filled in form in node.php) in node table and including the data in header would warp drupal functionality to outer space :-).
Can anybody help me with this rewriting rule?

Comments

cybe@drupal.org’s picture

Sorry, can't really help you, just decided to post here about rewrite. It would be nice with a rewrite rule like that though...

Rewrite working OK on my WAMP and on my ISP's **nix Apache setup..

I have alot of mod_rewrites like this:
RewriteRule ^nwo$ ?q=taxonomy/view/or/13
RewriteRule ^nwo/$ ?q=taxonomy/view/or/13

two of them to accept both /nwo and /nwo/, however in other places (namely a modified polder.theme) I preg_match using regular expressions like "/\bark\b/i" to solve the trailing slash problem. I studied Apaches mod_rewrite tutorial but am not quite sure how to solve it more elegantly than two rules. Anyone know of a way of doing it?

Anonymous’s picture

There is similarily build CMS - AWF - http://awfers.org which is also built on node structure. It has well implemented rewriting rule for number.htm.

ax’s picture

you have to enable "Clean URLs" (http://domain.org/admin/system, last entry under "General settings")

Anonymous’s picture

I can't find that at all!

Mike@frazierhome.net’s picture

You need to be running Drupal 4.2-rc or CVS version of Drupal to use Clean URL's. It isn't an option in 4.1 . 4.2-rc is very stable and really slick so its worth it to upgrade to this version.

If you are on 4.2-rc, then go to the admin screen, click on site configuration and then just above the cron setting is the drop down for enabling the Clean URLs.