URL mapping

lee.bourne

Member
This isn't really a webspeed issue, more a networking / web server configuration issue.

If you just want to get rid of 192.168.22.43 and turn it into test.com then you'll need to set up a DNS entry on your local network or just modify the /etc/hosts file on every machine that accesses the server.

If you want to get rid of /cgi-bin/wspd_cgi.sh/... on every page then have a look at mod_rewrite in apache

If it's just the home page you don't want the /cgi-bin/wspd_cgi.sh/... then look at the DirectoryIndex directive in apache.

Lee
 

anandknr

Member
I went for mod_rewrite method but where should i put the .htaccess file?

i had put it in the same folder of .html files. Is that the correct way ??
 

lee.bourne

Member
Yes but in your Apache .conf file you'll also need to use "AllowOverride All" when defining the home directory. Otherwise it won't look for the presence of a .htaccess file.

For help with the exact syntax of your .htaccess file you're probably better off finding an Apache specific forum (or Google!).

Lee
 
Top