Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

mod_rewrite rules in .htaccess

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Rewrite rules - How do you rewrite links of the form: to make them google friendly ?

ReWrite Rules - Hi, Currently my homepage is However I would now want my homeapge to be: The dynamic page is different from the static one as the

Rewrite rules & Subdomains - Hi, We are looking to use rewrites rules for Ex: -> We use this rule: on ^(.+) ..

Apache Rewrite Rules - Hello, I have compiled and mod_proxy into my apache 1.3.x server and are trying to rewrite any requests that come into the server for files in my cgi-bin/ directory to another apache server running on port 8080. I have tried these two rules..

Combining two rewrite rules - stuck :| - Hello I'm trying to combine: on !^$ [NC]
Next:  apache 2 and php on mac  
Author Message
alvaro_quitar_1

External


Since: Oct 31, 2003
Posts: 86



(Msg. 1) Posted: Wed Aug 25, 2004 1:11 pm
Post subject: mod_rewrite rules in .htaccess
Archived from groups: alt>apache>configuration (more info?)

I'm trying this very simple URL rewriting rule I copied somewhere:

RewriteEngine on
RewriteLog /tmp/server.log
RewriteRule /detalles/([0-9]+) /detalles.php?id=$1

According to manual, I can set both directives in .htaccess files. This is
what my virtual host looks like:

<VirtualHost *:80>
ServerName server
DocumentRoot /home/server/htdocs
CustomLog logs/server-access_log combined
ErrorLog logs/server-error_log
<Directory />
AllowOverride All
</Directory>
</VirtualHost>

Whatever the reason, it only works if I place the rewrite directives in
main config file: those in .htaccess are ignored (i.e., error 404). I've
used RewriteLog in virtual host config but the log file keeps empty. Apache
logs don't show any other message apart from the error 404.

Any clue would be welcome,


--
-- Álvaro G. Vicario - Burgos, Spain
-- Questions sent to my mailbox will be billed Wink
--

 >> Stay informed about: mod_rewrite rules in .htaccess 
Back to top
Login to vote
alvaro_quitar_1

External


Since: Oct 31, 2003
Posts: 86



(Msg. 2) Posted: Wed Aug 25, 2004 1:18 pm
Post subject: Re: mod_rewrite rules in .htaccess [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

*** Alvaro G Vicario wrote/escribió (Wed, 25 Aug 2004 10:11:18 +0200):
 > RewriteEngine on
 > RewriteLog /tmp/server.log
 > RewriteRule /detalles/([0-9]+) /detalles.php?id=$1
 >
 > According to manual, I can set both directives in .htaccess files.

Sorry for the typo, with "both directives" I meant RewriteEngine and
RewriteRule. I put the other one in httpd.conf



--
-- Álvaro G. Vicario - Burgos, Spain
-- Questions sent to my mailbox will be billed Wink
--<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: mod_rewrite rules in .htaccess 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]