Ralph Posted May 24, 2019 Share Posted May 24, 2019 First, I realized that when I used to install PW using Softaculous, my site was always only accessible via www.mysite.com alone without me setting up any redirect but after doing a manual installation, my site is served from both the www and naked versions of the domain. I tried adding some code to the htaccess file as suggested by my hosting provider but that didn't work. How can I set this up without setting up a 301 redirect? I want the traffic to only be to and from the www version of my website for SEO purposes. The second issue is that I want to add fields for author's pic and profile to every blog post but I can't seem to figure that out. The site profile I downloaded doesn't have those fields. How can I do that? The third is that I want to be able to add meta description to every page for SEO purposes. Any help with all these will be greatly appreeciated. I'm not a coder but I'm willing to learn Link to comment Share on other sites More sharing options...
wbmnfktr Posted May 25, 2019 Share Posted May 25, 2019 15 hours ago, Ralph said: How can I set this up without setting up a 301 redirect? 301 are totally fine - for ProcessWire and Google. Nothing to worry about. Read next part - as you have almost nothing to do for this. ? 15 hours ago, Ralph said: I want the traffic to only be to and from the www version of my website for SEO purposes. The existing ProcessWire .htaccess file already has this in place. Uncomment two lines and you are ready to go. # ----------------------------------------------------------------------------------------------- # 13. OPTIONAL: Redirect users to the 'www.' version of the site (uncomment to enable). # For example: http://processwire.com/ would be redirected to http://www.processwire.com/ # ----------------------------------------------------------------------------------------------- # RewriteCond %{HTTP_HOST} !^www\. [NC] # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 15 hours ago, Ralph said: I want to add fields for author's pic and profile to every blog post but I can't seem to figure that out. You can just add those fields to the user template - which can be found in Setup > Templates (after enabling showing system templates). And of course you have to create those fields first - if not already created. 15 hours ago, Ralph said: The site profile I downloaded doesn't have those fields. How can I do that? Setup > Fields There you can create all kinds of fields. Text, textarea, image, whatever... I recommend doing the tutorials available here: https://processwire.com/docs/tutorials/ They will help you to understand ProcessWire. It's absolutely not a waste of time. Even as someone who never worked with ProcessWire, but having some basic knowledge in terms of PHP, can learn ProcessWire within a weekend. 3 Link to comment Share on other sites More sharing options...
wbmnfktr Posted May 25, 2019 Share Posted May 25, 2019 In addition to that I wrote this: https://copypaste.pw/howto/author-box/ Maybe it helps or at least gives you directions. 2 Link to comment Share on other sites More sharing options...
Ralph Posted May 27, 2019 Author Share Posted May 27, 2019 On 5/25/2019 at 2:35 PM, wbmnfktr said: You can just add those fields to the user template - which can be found in Setup > Templates (after enabling showing system templates). And of course you have to create those fields first - if not already created. Thanks a lot, I'll try that now and see how it goes. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now