Jump to content

Htaccess redirection problem


sunil_23413

Recommended Posts

I am using htaccess to redirect url on a live server. My htaccess file are working well on localhost but giving problem on live server.

It shows an error like “/home/a1pro/public_html/euterpedia.com/a1/show.php not found on server”.

What I guessed form the above error message is that “a1pro” should be “~a1pro” as my site url is http://64.34.170.31/~a1pro/euterpedia.com/.

 

Then I echo $_SERVER['SCRIPT_FILENAME'] variable it displayed like

/home/a1pro/public_html/euterpedia.com/artist_list/index.php

But I think it should display /home/~a1pro/public_html/euterpedia.com/artist_list/index.php  as my site url is http://64.34.170.31/~a1pro/euterpedia.com/

 

Link to comment
Share on other sites

a1pro is your account name or something on ur web hosting.. public_html would be your WEB DIRECTORY and euterpedia.com is the folder 1 inside your web directory..

 

if anything euterpedia.com should show ~a1pro, unless your site directs directly to your euterpedia.com folder which artist_list would be what you're redirecting to from ~a1pro, but anything you do to the url won't affect whether it shows /home/~a1pro/ or /home/a1pro/

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.