Welcome to WebmasterWorld Guest from 54.160.177.33

Forum Moderators: open

Message Too Old, No Replies

PR impact of Apache redirect?

     
6:32 pm on Dec 31, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 5, 2003
posts:112
votes: 0


One of my sites is setup so that when you go to the main domain, www.mydomain.com you are redirected by Apache to www.mydomain.com/directory/classifieds.php.

I'm using a script for this classifieds site. I had it setup this way so that it goes right to the main page of the classifieds on the site.

Will this hurt my PR since most links are to www.mydomain.com but noone ever actually visits that page? It can't really be indexed. Is there a better way to handle this situation?

3:31 am on Jan 1, 2004 (gmt 0)

Moderator from AU 

WebmasterWorld Administrator anallawalla is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 3, 2003
posts:3701
votes: 3


If it is a permanent redirect, it should be fine.
1:24 pm on Jan 10, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:June 23, 2002
posts:60
votes: 0


You should be able to get apache to treat front page loads like www.mydomain.com/directory/classifieds.php loads. mod_rewrite, maybe?

I don't know what effect fixing it would have on search engines, but it would make your site faster and more professional-looking.

4:01 am on Jan 27, 2004 (gmt 0)

New User

10+ Year Member

joined:Dec 30, 2002
posts:11
votes: 0


I agree with jesserud that using mod_rewrite is a much better solution than using a redirect.

With mod_rewrite the user (including any search engine crawler) will see the front page URL with the second page's content. All redirection is done within the server before it reaches the browser (or the bot).

On the other hand, the redirect is handled by the browser. It first retrieves your front/main page and then, per the instructions in its header, retrieves the second page. If it is a permanent redirect, the SE bot *might* be smart enough to stick the new URL into its list for the next crawl, but I doubt if it would reassociate all the links to the first page to the new page.

Something like this in your httpd.conf file is all you need:
RewriteEngine on
RewriteRule ^/index.html$ /directory/classifieds.php [L]