How to point a domain name to a...

User 38401 Photo


Senior Advisor
10,951 posts

I'm telling you I get thwarted no matter which way I go, and this time it's nothing to do with my own computer *smacks Scott again for good measure* LOL

Ok so here's my quirky problem which I need to report to my server main host site. In cPanel, trying to do redirects, I misunderstood the way the "wildcard" worked at first, but then finally got the gist of it, removed the ones I had added wildcards to, and now I can't get them to go back in "without" it adding the wildcards even though I have it unchecked. So... to try and get this done I'm looking in the .htaccess file to see what's different between the ones that are wildcards and the ones I didn't originally put wildcards in that worked.

Here's one of the selections I'm trying to figure out. Just need to know what to take out so it's no longer a wildcard.

Actual links I want to redirect from and then to:
From: http:// accessoriesoftheworld.com/blog/feed/*%7CFORWARD%7C*
To: http:// accessoriesoftheworld.com/blog/index.php

Code that ends up in the .htaccess file which has a wildcard in it:

RewriteCond %{HTTP_HOST} ^accessoriesoftheworld.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.accessoriesoftheworld.com$
RewriteRule ^blog\/feed\/\*\%7CFORWARD\%7C\/?(.*)$ "http\:\/\/accessoriesoftheworld\.com\/blog\/index\.php\/$1" [R=301,L]
User 38401 Photo


Senior Advisor
10,951 posts

All the redirects that I have left to do are the ones that have this in them, and these are the ones that won't do a non wildcard so apparently it's something to do with this code:

*%7C .... %7C*

I did try to enter them as:

*| ... |*

but that didn't work either, made the code different but still ended up with a wildcard setting.

I have about 15 links that have this type of problem, I did get some of the redirects in but the major ones that have more hits are in this mess lol.
User 147665 Photo


Ambassador
712 posts

Those URLs may have an issue due to the * wildcard used in the URL
The %7C is " | "
http://www.w3schools.com/tags/ref_urlencode.asp

I would say to rename your URLs and remove the * from them.
edit: You are better off using a -(dash) or an _(underscore) in a URL
example.com/my-page-is-here
example.com/my_page_is_here

User 38401 Photo


Senior Advisor
10,951 posts

well see that's the problem dave, they aren't there lol, Google is picking these up from the wordpress for some reason, and I've not got any access to those actual files, they aren't there. That's why I'm trying to redirect them so it stops finding them for some reason. It's finding a bunch that don't exist on the server, aren't in the sitemap file at all either, no idea where it's getting them from even.
User 147665 Photo


Ambassador
712 posts

hmmmm, have to think on that one.. I have a demo WP, I will look at it.

User 38401 Photo


Senior Advisor
10,951 posts

Yeah I don't think it's seeing exactly the same code as what I'm putting in there as I'm pretty sure it's seeing it as *| ... |* and I can't find a way around it, so if you do find something in WP on it please let me know.
User 562592 Photo


Registered User
2,038 posts

I wonder if WP cache's them in some way.
The philosopher has not done philosophy until he has acted upon the mere conviction of his idea; for proof of the theory is in the act, not the idea.

My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).

My Personal Website: http://www.EricSEnglish.com

User 38401 Photo


Senior Advisor
10,951 posts

no clue, and not sure where to even look for that. I looked in the file manager to see if there was any cache anywhere, and I found in the public_html directory there is a tmp/pear/cache directory with a lot of files in it, but they didn't look like anything that had to do with wordpress so I left it alone.
User 147665 Photo


Ambassador
712 posts

chances are that if there is a cache it would be in one of the database tables. I looked my demo WP database, but there is no content to speak of and I didn't see a table for cache. The WP site doesn't have the information that I was looking for about caching. I would know a lot more about it if I actually used WP, but I have only actively used B2evo and Drupal. You might try posting the issue to the WP issue queue and see if any of the WP folks have run into this before.

You might have a look at the feed settings in your dashboard or control panel and see it could be something there. If your not using the feed, maybe try shutting it off.

and-- check to see if WP has a clear cache function.

User 147665 Photo


Ambassador
712 posts

still haven't found anything yet on the weird WP URL.. :(
Some nice tips here:
http://www.smashingmagazine.com/2008/12 … wordpress/
Disable rss plugin:
http://wordpress.org/extend/plugins/disable-rss/

There is a site with some nice tools, worth a look
http://www.webmaster-toolkit.com/


Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.