Hello,

I am trying to get rid of the "profile" page altogether and replace it with the "Mysite" module.

At present when you click on a user's name it takes you by default to his profile page -

e.g ?q=user/3

Where can I change this link to link to "?q=user/3/mysite" instead?

Thanks.

Comments

vm’s picture

I've not tested but it may be possible to pull off something like that using the pathauto.module and the token.module.

rupat’s picture

A rewrite rule in the apache vhost entry can also be a solution. So no need for an extra module

dRaz’s picture

Thank you for the replies.

Apache re-write is way above my level, could you explain please?

rupat’s picture

Hello again

You also need to have access to the Configuration of your Webserver or simply have the possibility to place an .htaccess file with the commands in it.
url rewriting is exactly what you want. a url rewritig of the apache make the folowing for you

maybe a user clicks a link like /user/34 then the right rewrite rule can do, that the apache calls /newuserview/34 instead. The visitor still see in his address line the /user/34, so he dont notice that there is a rewriting or something.

the rewrite rule can be added in the server konfigurations file (maybe in the virtual host declaration) or in a .htaccess file in the root dir of your site. (you can also add this line to an existing .htaccess file)

I have searched about a little tutorial for you and found a very simple one:
http://www.addedbytes.com/apache/url-rewriting-for-beginners/

If you still want more help , we have to know where you have access to your server (only ftp ?, ssh, it is your root server). Because we do not know what you can do. If you cant change the server configuration , we dont need to explain ;)

Greetings from Robert

dRaz’s picture

What a great response, thank you very much.

I will look into this and let you know how I get on.