Solved

permalink problem

Posted on 2011-09-19
13
270 Views
Last Modified: 2012-05-12
My blog is hosted on www.site.com/blog.
By mistake we linked from an important site to www.site.com/Blog.
For the strangest reason if you click on with a capital, you get a 404 worpress missing page.

What can I do to get around it?
0
Comment
Question by:rivkamak
  • 5
  • 3
  • 2
  • +2
13 Comments
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 36561208
I've dealt with this problem for another person that was experiencing the same error. The person was on a Linux hosted server, so if you are also try this:

Open a blank text document and paste this in it:
http://' .  getenv('HTTP_HOST') . strtolower($uri[0]) . $uri[1], true, 301); ?>

Open in new window


Save the files as lowercase.php and upload the the WordPress Root Directory (where the wp-config file is.

Next you need to open your .htaccess file and add this to the top:
Options +FollowSymLinks 
RewriteEngine On 
RewriteRule [A-Z] /lowercase.php [L]

Open in new window

0
 

Author Comment

by:rivkamak
ID: 36561213
What do I need to change if I have an IIS server?
0
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 36561232
IIS isn't my specialty, but I'll point you in the direction of an article that explains how. If you get stuck, let me know and I'll try to help:

http://learn.iis.net/page.aspx/465/url-rewrite-module-configuration-reference/
0
 

Author Comment

by:rivkamak
ID: 36561334
I made the changes in the url rewrite,., but it's not co-operating.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 36561389
IIS should be case-insensitive by default...why is yours doing this at all?
0
 

Author Comment

by:rivkamak
ID: 36562040
That's what I don't know.
you can check
http://www.oorah.org/blog
or http://www.oorah.org/Blog
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 36562060
Ah-ha...that's not a true 404, that's WordPress attempting to find something and failing.

What you could do is create a page with /Blog/ as the slug and use:

http://wordpress.org/extend/plugins/simple-301-redirects/

to redirect it to /blog/
0
 

Author Comment

by:rivkamak
ID: 36562386
I can't create anythin with a capital.
I tried creating a page with /Blog/ and it saved it as /blog/
0
 
LVL 3

Expert Comment

by:ovi_mihai
ID: 36565283
Try a .htaccess redirection

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^www.site.com/Blog [nc]
rewriterule ^(.*)$ http://www.site.com/blog/$1 [r=301,nc]

Open in new window

0
 

Author Comment

by:rivkamak
ID: 36568151
In Url Rewrite?
0
 
LVL 31

Accepted Solution

by:
gwkg earned 500 total points
ID: 36582670
I use the redirection plugin to catch 404 errors and redirect to the proper pages.

http://wordpress.org/extend/plugins/redirection/
0
 
LVL 3

Expert Comment

by:ovi_mihai
ID: 36584035
create a text file named .htaccess and put in the root of the blog. the content is above and you get the 301 redirection
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 36584077
ovi_mihai

He's running IIS.  Different rules apply.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to count occurrences of each item in an array.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now