New to Mod_Rewrite and Issue with it working

New to mod_rewrite? This is a good place to start.

New to Mod_Rewrite and Issue with it working

Postby jimbauer3 » Fri Oct 30, 2009 11:43 am

I'm trying to setup the httpd.conf file to rewrite to a DNS recently created. Currently I have Subversion web utilizing http://localhost/svn/dml, I need the rewrite to use http://www.mvcidml.com.

I have added the following in the httpd.conf file;

<IfModule rewrite_module>
Options +FollowSymLinks
RewriteEngine On
RewriteRule /.* http://www.mvcidml.com/ [L]
</IfModule>

I also enabled the module as below;

LoadModule rewrite_module modules/mod_rewrite.so

Is there something eles that I'm missing to get this to work.


Jimbauer3
jimbauer3
 
Posts: 1
Joined: Thu Oct 29, 2009 5:32 am

Postby richardk » Mon Nov 02, 2009 10:13 am

Does this mod_rewrite test work (in your .htaccess file)?
You want requests to localhost/svn/dml/* to go to mvcidml.com/*?
Where is the mod_rewrite in your .htaccess file?

Try a simple redirect
Code: Select all
Redirect 301 /svn/dml http://mvcidml.com


If that doesn't work, what SVN configuration do you have? It might be a conflict with that.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 28 guests

cron