How to prettify Website Link

Hi There,

Iam new to this forum & coding too :smiley:

actually my site is xyz.com/123/Web/WebPages/Main/index.php

I placed a redirector at index.page. which is www.xyz.com

my question is I when someone type xyz.com it should show xyz.com in address bar.

currently it show www.xyz.com/123/Web/Webpages/Main/index.php.

Thanks in Advance

Hi Sahil. Welcome to the forum.

What is your redirect code? Where does it redirect to?

Hi Sahil,

Gandalf is on the right track as we can’t do much to help without knowing what you’ve done to create your redirection … and what type of server you are using (Apache vs IIS).

If it helps, it appears that you have created this massive problem for yourself as your website should be in xyz.com’s public_html directory (your DocumentRoot) so no redirection would be necessary.

If you need to bury your website several directories down from your DocumentRoot, you could use a symlink to effect a redirection. My expertise, though, is in using Apache’s mod_rewrite to make my redirections and, in your case, would require you to make all your internal links to the DocumentRoot and then fetch the files from 123/Web/Webpages/Main via redirections … VERY ugly and unnecessary, IMHO.

Regards,

DK

Im using XAMPP Apache.

My redirection is if someone types www.xyz.com

it redirects them to www.xyz/com/xyz/Web/WebPages/Main/index.php.

Are you using PHP to redirect? If so, that’s why it shows the actual page you’re on. As @dklynn says, your best bet is to use Apache’s mod_rewite

Yepp. using php only.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.