Home » Htaccess Tools » Questions regarding htaccess » How to choose my URL using htaccess...my attempts don't seem to be working
How to choose my URL using htaccess...my attempts don't seem to be working [message #855] Mon, 21 January 2008 13:52 Go to next message
Dainis  is currently offline Dainis
Messages: 4
Registered: January 2008
Location: Vienna, Austria
I've done a good amount of reading and posting to learn how to be able to choose my own URL with htaccess. It would be fantastic, if this forum could clarify things for me.

Here's the gist of what I'm trying to do:

With http://www.rglohjahwwans.com/community/ as my joomla root folder, how are URL's like:

http://www.rglohjahwwans.com/public-affiliate-tools.html
and
http://subdomain.rglohjahwwans.com/name-of-choice.html

possible?

Here's what I've tried:

RewriteRule ^test\.html$ http://www.rglohjahwwans.com/community/index.php/Contact-Us/

OK, that works, but the thing is, that I want the display URL to be test.html, not the redirected URL. Is there any way to tell the server to display the browsed url and not the destination url?

Quote
RewriteRule ^/community/index\.php/Resources-in-rG-Section/ http://www.rglohjahwwans.com/resources.html

OK, this doesn't work. Or at least it's not giving me what I want. My intention was to have the display URL be /resources.html, and for people to be able to browse that.

Quote
Redirect 301 /contact-us.html http://www.rglohjahwwans.com/community/index.php/Contact-Us/
OK, this works too, but it's still displaying the wrong URL. It's going to the right URL, but the display URL is wrong. Yes, I want people to be able to browse to /contact-us.html, but then, I don't want the URL to change, I want the Joomla file to be accessed, and I want the user to see http://www.rglohjahwwans.com/contact-us.html


Here are some posts I've made regarding this issue so far:
http://extensions.siliana.net/en/Forum/sh404SEF-support/6693 -ReCan-I-../my-way-out-of-the-root-directory.html
http://forum.joomla.org/index.php/topic,248576.0.html
http://www.rockettheme.com/option,com_smf/Itemid,190/action, profile/u,24571/sa,showPosts/
http://www.rockettheme.com/option,com_smf/Itemid,190/topic,2 5494.msg134140/#msg134140

It's funny, because I don't imagine that accomplishing what I'm trying to do is very difficult. I just want to specify:
1) URL my visitors type in
2) File accessed when users type in a particular URL
3) Display URL = #1

It would be wonderful, if this issue could be resolved here. I found a similar question here http://www.htaccesstools.com/forum/index.php/m/559/?srch=dis play+url#msg_559, where the suggestion was to make a php file, but the directions there aren't clear at all...what should the php file be named, where should it be placed, how can I make a list of files, etc.

Help in resolving this issue would be greatly appreciated.

Best,
Dainis

I
Re: How to choose my URL using htaccess...my attempts don't seem to be working [message #895 is a reply to message #855 ] Mon, 10 March 2008 12:25 Go to previous message
Dainis  is currently offline Dainis
Messages: 4
Registered: January 2008
Location: Vienna, Austria
I'm still working on this...any tips?

--Dainis
Previous Topic:.htaccess not working on VPS
Next Topic:Domain redirect help
Goto Forum:
  


Current Time: Sat May 17 01:47:47 CEST 2008

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software