RE: [users@httpd] mod_rewrite issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have not put it in the config file because I want to use the .htaccess. I
am lost a bit because it seems as if there is no access to the .htaccess
file.

Maybe I am doing something wrong in the config file?

Thomas

-----Original Message-----
From: Axel-Stéphane SMORGRAV [mailto:Axel-Stephane.SMORGRAV@xxxxxxxxxxxxxx] 
Sent: 29 July 2005 04:30 PM
To: users@xxxxxxxxxxxxxxxx
Subject: RE: [users@httpd] mod_rewrite issue

Haven't tried this at home; my parents won't let me:
 
RewriteRule ^/([^/]+)/([^/]+)/([^/]+)
/index.php?object=$1&function=$2&action=$3
 
Put it into your httpd.conf.

Does it work for you?

-ascs
________________________________

From: Thomas [mailto:thomas.hochstetter@xxxxxxx] 
Sent: Friday, July 29, 2005 4:06 PM
To: users@xxxxxxxxxxxxxxxx
Subject: [users@httpd] mod_rewrite issue


<![endif]--><![endif]--> 

            Hi,

 

 

 

I have my site setup like this:

index.php?object=object&function=function&action=action&morethings .

 

I want to be able to have a url like this:

http://mysite.com/object/function/action or morethings.

 

As you can see, I want to map the url directly to my values (.i.e. /object/
to object=$object .)

 

 

 

I have read some documentation on mod_rewrite with .htaccess and come up
with this:

 

 

 

[code]

 

RewriteEngine on

 

 

 

RewriteRule ^([A-Za-z])$ /$1/ [R]

 

RewriteRule ^([A-Za-z])/$ index.php?object=$1 

 

[/code]

 

 

 

Now, if I go http://mysite.com/signup/ it does not map it but only displays
a 404. What am I missing?

 

 

 

My document_root for Apache is not served out of the default folders but
from another location. I did not set it up as a virtual location. Does that
matter? It does not seem to even consider the .htaccess.

 

 

 

Thanks

 

 

 

Thomas


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux