SEO Services
Home >>
Webmaster Forums >>
PR questionPR question
chris3471 said: "I know PR isn't as important as people think but I'm trying to get some link exchanges and I don't want people thinking my site is only a pr2.
Anyway here's the question.
The url [url]http://www.searchmebaby.com/[/url] gets a PR3
but [url]http://www.searchmebaby.com/index.php[/url] gets a PR2
The thing is though is that they're the same page.
Is there a way I can use .htaccess to fix this?
Here's what I have for a 301
[code]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^searchmebaby\.com [NC]
RewriteRule (.*) http://www.searchmebaby.com/$1 [R=301,L]
[/code]"
Developer said: "This will remove index.php and the query string from all folders, including the root folder:
[CODE]RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ .*/index\.php(\?.*){0,1}\ HTTP/
RewriteRule ^(.*)index.html$ http://www.searchmebaby.com/$1? [R=301,L][/CODE]
If you don't want to removethe query string then this should work:
[CODE]RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ .*/index\.php(\?.*){0,1}\ HTTP/
RewriteRule ^(.*)index.html$ http://www.searchmebaby.com/$1 [R=301,L][/CODE]
There are other sources of duplicate content, like multiple slashes and query strings on pages. I would need to know more about the website structure to sort them out."
chris3471 said: "Great it worked, thanks. I've been trying to figure that out for hours.:D
Now I have one more question.
My forum used to be in a directory called forum but now it's in the root directory and I have about 400 pages indexed that are now dead links.
So how do I use .htaccess to redirect to the root/somepage.php
basically if someone is looking for mysite/forum/somepage.php I want it to redirect to mysite/somepage.php where somepage.php is any page they may be looking for.
*[COLOR="Red"]Edit[/COLOR]* Ok I figured it out. It was too easy that's why I couldn't figure it out. Did it like this:
[code]
Redirect /forum http://searchmebaby.com
[/code]"
chris3471 said: "Uh oh, small problem, the admin link won't work.
admin/index.php?sid=some-numbers-here
*[COLOR="Red"]Edit[/COLOR]* Ok I figured that out too. created an .htaccess file in the admin directory and put this in it. Works now.
[code]
RewriteEngine On
RewriteBase /admin/
RewriteRule ^/*(.+/)?([^.]*[^/])$ http://%{HTTP_HOST}/admin/$1$2/ [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.searchmebaby\.com
Rewriterule (.*) http://www.searchmebaby.com/admin/$1 [R=permanent,L]
RewriteRule ^home/smb1/public_html/admin /admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /admin/index.php [L]
[/code]"
tracepeople said: "if they both resolve to the same page then why do thye have different pr? I'd understand it if [url]www.yourdomain.com[/url] was redirected to [url]www.freehosting.com/yourdomain[/url] as the urls would be very different."
chris3471 said: "I was wondering that myself, maybe the one witheout the index.php is sitewide PR?
Well anyway though thanks to Developer I'm able to keep the pR3 instead of the PR2, I spent 3 hours trying to figure out how to do that.
I've also set up redirects for when pages or directories aren't found, they all go straight to the forum."
edwin said: "they're two seperate pages. 301 redirect the one to the other"
amardeep said: "Hi,
How can we increase google page rank and can get exchange links with webdesigning."
Heather said: "I'd recommend adding new content and building links."
Darren said: "Look for "web design" + "link exchange" in Google."
edwin said: "yeah, that's always a classic"
JNKProducts said: "I suppose if we new the formula we'd be rich. I can tell you one thing, it makes very little sense. We have a site thats been up since 2003 with over 5,000 incomming links --depending on who you ask-- and another with 8 that was just launched this year. They both have a PR4"