FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Shortening URLs





ChunkyBustout
Hello all,

I wanted to know if there is an easy way to do this. I'm looking to change the following:

from http://www.chunkybustout.com/modules/forum/index.php?page1

to http://www.chunkybustout.com/forum

Is this even possible?
n0obie4life
Well, the link is a 404..
ChunkyBustout
uh... that was just an example. Laughing
n0obie4life
Is it a nuke page?

Post nuke, whatever nuke.

[edit]

.htaccess

Rewriteengine ON

and all that will work. But you have to find it out yourself Smile
ChunkyBustout
I'm using a CMS package called CMS Made Simple.

I've located the

Quote:
.htaccess


file and added

Quote:
Rewriteengine ON
to it.

Now, what do I use and where do I put the actual change?
n0obie4life
Err. To do it you have to use the rewrite engine. But I'm not sure what are the stuff you should put Smile
ChunkyBustout
Ok. How do you access the rewrite engine?
gonzo
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

http://www.google.com/search?q=apache+rewrite
TheGeek
the other thing that you can do if your server supports it is make a subdomain. If you do that, you could specify the path like, www.forums.yoursite.com or something like that. If not then i dont know what to tell you.
ChunkyBustout
TheGeek wrote:
the other thing that you can do if your server supports it is make a subdomain. If you do that, you could specify the path like, www.forums.yoursite.com or something like that. If not then i dont know what to tell you.


Thank you, Geek. This sound a lot easier and I didn't even consider doing it this way. thanks again.
ocalhoun
you just need to have a /forum directory in public_html, that will shorten it some (good luck re-directing all your links).
ChunkyBustout
Thanks ocalhoun but my forum is a module of the cms software I'm using so it doesn't have it's own directory. I have only to access it through it's url (which I like).
Kyle Katarn
You could make the /forum folder, and make a index.html file with a meta_refresh of 0, and point it towards your other URL.
bananaphone
Just change the folder the HTML files are saved in - this will change the folder. You can also try a subdomain.
Helios
you can also use the redirection options within your cPanel..
Daniel15
Put this in a .htaccess file:
Code:

RewriteEngine on
RewriteRule ^forum/(*+)$ /modules/forum/$1 [L,QSA]

This rule basically means, "if a user tries to go to forum/ followed by a string, then load /modules/forum/ followed by the string.

This will redirect URL's such as
http://www.chunkybustout.com/forum/viewtopic.php?id=1
to http://www.chunkybustout.com/modules/forum/viewtopic.php?id=1

For example, if a forum address was http://www.chunkybustout.com/modules/forum/index.php, then you could access it through http://www.chunkybustout.com/forum/index.php
Related topics
No referral URLs on the forum
How come some companies have URLs like www1.euro.dell.com?
Unreachable URLS- Google My Sites
many short urls
Parsing feed tag urls
Parse feed tags/urls using rss2html
SEO Friendly URLs
Listing URLs in a site
Problems with Dynamic URLs
.htaccess SEF urls
Rewrited URLs, are relevant or not?
How Can I Remove Unwanted URLs From Google Search Result?
URL shortening services
Me an My URLs: Hope I am doing the right thing
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.