Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Changing from html to php does it affect seo?

Featured Replies

Hello friends,

 

I have recent ly changed my page extensions from html to php because i have enabled gzipfor my pages for saving bandwidth and fast loading of pages but google has so far indexed by pages according to htm extension will it affect my seo :unsure:

 

 

  • Author

I presume you did 301s from the old URLs to the new..

 

lol no

<?
Header( "HTTP/1.1 301 Moved Permanently" ); 
Header( "Location: http://www.new-url.com" ); 
?>

 

 

shld i put this code in header of eeach pagedo i need to keep my old pages with html extension i mean where do i put it me not gud at php :unsure:

lol no

<?
Header( "HTTP/1.1 301 Moved Permanently" ); 
Header( "Location: http://www.new-url.com" ); 
?>

 

 

shld i put this code in header of eeach pagedo i need to keep my old pages with html extension i mean where do i put it me not gud at php :unsure:

 

Well you odviously cant post that code in an html page if you wanna keep the old pages html but you can use this to redirect place the code below in the head section

<meta http-equiv="refresh" content="0;url=http://yourdomain.com"/>

Change that 0 to the number of seconds you want it to wait before it redirect personally i'd just leave it at 0 then it will just redirect to the new site right away

  • Author

my problem is that i am explaining with an example i have an old page say webdesign.htm which has got some trafic on google now when someone clicks on tht page i want him or her to redircvt to webdesign.php for that what i have to do? shld i keep both htm and php on my server ?

 

and i have heard it takes google 6-8 wks to understnd redirect 

 

 

You should really enable it on Apache and not PHP because apache negoiates with the client to see if they accept compression, if not it'll just send an uncompressed version.

 

To redirect all .html (blindly) to php create a .htaccess file and put this in it:

 

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^([^.]+).html$ /$1.php [QSA,L]

 

or you could just add .htm as a php handler.

  • Author

well i tried ur method simple copy paste the code in notepad and save as .htaccess and save and upload the file but .htm are not redirecting to .php i have cam a cross thistut

 

and here is my link of one of me pagegraphicdesign.htm

 

graphicdesign.php

 

 

 

i have both php and html in my server :unknw:

Have you followed the instructions in Google webmaster tools - go to your site in webmaster tools then pick Site Configuration then Change of Address - it gives you all you need to know there.

  • Author

Have you followed the instructions in Google webmaster tools - go to your site in webmaster tools then pick Site Configuration then Change of Address - it gives you all you need to know there.

 

ya now i think i have to talk to my web host to configure apache htaccess hope it will solve the problem and i dint set my prefferred domain on google web masters which i set now!

 

i have to make permanent 301 redirect for all of my pages or just the index page ?but anyhow my 301 redirect isnt wrking yet :mellow:

 

cpanel has this feature but i want to discuss it with the webhost first

 

 

 

  • Author

all rght i think i have solved it i have used the redirect feature of cpanel and now if some one requests for webdesign.htm it redirectts to webdesign.php now how long i have to keep both htm and php on my server or i dont need the .htm now and i have to create redirect for each page am i rght?

 

one more query i have both index.htm and index .php shld i have to make redirects for tht too or i just delete 1 index file

 

 

 

 

 

i have made redirect but now some pages with redirects are not opening or if opening they are taking much longer :(

 

 

 

 

 

 

 

all rght folks thanks for help i hope my problem is solved as of now i have checked all pages and their links and have to reupload few pages :yr:

 

 

 

 

 

Now coming to google webmasters how do i verify neophytech.com and www.neophytech.com is the same site shl i have to add verification code?

 

 

  • Jo 90 locked this topic
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.