(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
06-03-24 11:33 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - URL redirection
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
Mercury
Posts: 9/9
Thx for the url, I'll check it out!
Cellar Dweller +
Posts: 101/138
You may want to look at http://www.modrewrite.com/. In particular, you may and to go to http://forum.modrewrite.com/viewtopic.php?t=1445, and scroll down to the "Mod-Rewrite Directives for URL Redirection" section. It appears your rules will cause the address bar to change.

You could try installing Apache on your computer and test it. But you would need to read the docs to see how to configure it. Also, if you do this, you will need to put your test domains in your hosts file when you do the test.
Mercury
Posts: 8/9
Indeed, what I wanted to know was if the url in the address bar in your browser will change to the 'ugly' url or will it stay as how you typed it.

Don't have my hosting now, so can't test it myself.
MisterJones
Posts: 103/125
Originally posted by Guy Perfect
Redirections are handled by the web server, not server-side CGI programs.


All I see there is the use of .htaccess, not any sort of server side cgi program.
Guy Perfect
Posts: 341/451
Redirections are handled by the web server, not server-side CGI programs. Consult the documentation of your server software to see how to properly handle URL redirections.

Standard HTTP redirections will indeed change the URL. So "www.wikipedia.com" can become "www.wikipedia.org" and so-forth.
Mercury
Posts: 7/9
I will soon have 1 hosting plan and +3 domain names.
Now I know it's possible to redirect every url to a certain subdomein.

I assume like this (in the .htaccess file):

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain2.ext$ [NC]
RewriteRule ^(.*)$ http://subdomain.domain1.ext/$1 [R=307,L]

Now my question, when you type the address http://www.domain2.ext, will it change to http://subdomain.domain1.ext in the address bar? Or will you still see http://www.domain2.ext.

Or for example if you go to http://www.domain2.ext/folder/file.php, will the url change to http://subdomain.domain1.ext/folder/file.php or will it stay like you typed it first?

Acmlm's Board - I3 Archive - Programming - URL redirection


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.011 seconds; used 349.48 kB (max 388.26 kB)