How do you give content pretty permalinks in Pakyow? - pakyow

By default, Pakyow has URLs like /authors/1.
How can I also/instead have URLs like /authors/s-kyle-newman?

With help from Bryan, I figured it out and put it in a blog post about pretty permalinks and canonical URLs. If you've stumbled on this answer, I hope it helps.

Related

Trying to create seo friendly url

I'm trying to create friendly url for my site but with no success :(( and i have two questions
The first is:
How to change the url from domain.com/page/something.php to domain.com/something
And the second is:
Will the changes make duplicate content and if how to fix the problem.
Thank you for your time,
Have a nice day
Check out the official URL Rewriting guide: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
You'll be using the simplest use case, Canonical URLs. Assuming you have no other pages that you need to worry about, you can use a rule like this: (note: untested, your usage may vary)
RewriteRule ^/(.*)([^/]+)$ /$1$2.php
While that example might not exactly work for your use case, hopefully reading the guide and my example will help you get you on your way.

htaccess 301 wanted experts in htaccess

Question how do i rewrite
http://www.mywebsite.nl/support/department/index.php?/Ontruimingsvonnis/Knowledgebase/List/
to
http://www.mywebsite.nl/support/knowlegdebase/list
i have tried different ways to solve it but sofar no luck. Me and htaccess just aint friends.
Who will be able to help me out with this is need a 301 redirect for this one?
Could it also be that the index.php? would give a problem here?
Thanks in advance,
Paul
My Memory is a little hazy on this (its been a couple of years since i had to do this) but i believe mrewrite is what you need to use.
After a little digging, i found the page that might be helpful
http://www.workingwith.me.uk/articles/scripting/mod_rewrite

Is there any danger in posting your .htaccess file on a forum?

As title says. I am looking for some help with my .htaccess. I have been offered help on an apache forum however before i post my .htaccess for others to see i wondered if by doing this the security of my site could be compromised in any way??
Thanks
P
Maybe? It depends?
If you have something that includes a secure system path like the location of AuthUserFile, you might want to put in some dummy text before posting:
AuthUserFile /PATH_TO_FILE/
Most of the boiler plate stuff (ErrorDocument, hiding the .htaccess, -Indexes, etc...) though, wouldn't worry about it.

Simple URL rewrite, not redirect, with .htaccess

I'm pretty inexperienced with .htaccess so please bear with me.
I have a domain - "http://www.exampletest.com"
which redirects to a folder at a different domain where I have hosting i.e:
"http://www.differenturl.com/exampletest"
Is there an easy mod_rewrite rule where I could have anything at "http://www.differenturl.com/exampletest" show up as "http://www.exampletest.com?" An example would be:
"http://www.differenturl.com/exampletest/user.php" -> "http://www.exampletest.com/user.php"
Any assistance is greatly appreciated. I assume this easy so sorry to ask such a basic question.
Thanks
You say "rewrite, not redirect", so no, there isn't a simple way to do this. The only way to do what you ask would be to have a "reverse proxy" running on www.exampletest.com that fetches content from "www.differenturl.com/exampletest/". That isn't something you can do with mod_rewrite.
If I have understood correctly, following code might do:
RewriteRule exampletest/(.*)$ http://www.exampletest.com/$1 [R=301,L]
Please note that you add this line in the .htaccess file placed on differenturl.com server.
Hope that helps.
Cheers

.htaccess reference with examples

Need link, if it exist, to good and full .htaccess reference with examples.
Thanks.
How about the actual documentation for apache. httpd.apache.org howto htaccess.
http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html
http://httpd.apache.org/docs/2.0/howto/htaccess.html
You can do so many things with .htaccess file, that there are probably no comprehensive set of examples.

Resources