Wordpress 3.3.1 url parameters not working - wordpress

This was working in wordpress 3.3 but when i upgraded didn't work.
Whenever I type url http://www.sitename.org/?email=John , wordpress automatically removes paramter and makes it http://www.sitename.org/
Due to this some of the plugins are also not working.
Does anyone know if this is wordpress 3.3.1 fix or I have to do something in settings sections? or write in .htaccess file. I read about %{QUERY_STRING} as GET parameters but could not understand, sorry I am just trying to figure out.
My .htaccess file contents
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Thanks,
Solved. I don't know but when my friend disabled SEO plugin things started working.
Still I have not clue of what happened.
Anyways working for now.
Thank you.

Related

Mod_rewrite in wordpress

I've got an url /nl/sunglasses which is a translated page by qtranslate. I want to change this to /zonnebrillen . I prefer not to change this in wordpress since the 'sunglasses' is generated by a plugin wp-ecommerce and hardcoded.
Can I use a mod_rewrite so that /nl/sunglasses will be /zonnebrillen. And how can I let wordpress 'know' to show the according page?
Cheers!
Here's some code I modified after getting WP to take query vars in the URL including "name" as a query var. I am including the "original" .htaccess file posted by regular WP install to show the context. I have separated the rewrites to avoid problems when WP updates, or when "certain admin functions" cause it to change. P.S. I didn't test this, but similar code works for a much more complex page redirect... so try it. Let me know if it doesn't work for you, I'll test it.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^nl/sunglasses/ /zonnebrillen [NC,L]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Should work with WP 3.4+

WordPress arabic permalinks

I'm creating an arabic blog, using the arabic version of wordpress, but when I set the permalink configuration to use the post name, I get a not found error message with similar text to:
The requested URL /سيبس/ was not found on this server.
Does anybody have any clues ?
and thanks for your support to me :)
I have solved my problem, and what was going wrong is my .htaccess file, when installing an arabic wordpress blog locally, I noticed that it was working very well, so I made a comparaison and I noticed that by local .htaccess has content when the other doesn't.
So what solved my problem is putting the following code in my website .htaccess file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Need to use Mod_Rewrite in Wordpress 3.4.1 But It's Not Working - I've tried as much as I can think of

On any other site this is a piece of cake...however with Wordpress, I cannot for the life of me get this to work. I have tried everything and anything I can think of and or even research. I absolutely 100% need to get this working properly.
Example: page-language.php?lang=english is rewritten with /language-learning-software/learn-how-to-speak-english to make it SEO friendly
my .htaccess is as follows:
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^language-learning-software/learn-how-to-speak-([a-zA-Z0-9_-]+)$ /wp-content/themes/bizway/page-language.php?lang=$1 [N]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I have hostgator, if that helps at all. I have sppoken with support for over an hour and nothing came from it except they cannot change "AllowOverride" to "All" - I feel this might solve it but I guess it's not possible since it's a "shared" host.
Is there any plugins that can pull this off? Any way to customize permalinks? Any help would be greatly appreciated!
Thank you.

Wordpress 403 Forbidden Error

I am having a CRAZY error with Wordpress. When I create a new article or edit an old one, I cannot insert hotfile links that go after the first trailing slash.
I'm explaining it better. If in a post I do:
TEST
I can correctly create the article. If I do:
TEST
Or longer link, like:
TEST
I get an instant 403 error when updating the post from administration. This is crazy, and happens only with Hotfile links. Everything else works like a charm.
What could the error be? If it helps, i'm posting my .htaccess, that I never changed from my WP installation:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Already done repairing and optimization of MySQL DB. Kind thanks in advance to everyone.
I'm a regular WP developer, and I see little bugs like this all the time. Unfortunately, it usually means it's time to go through the tedious work of testing. The problem likely lies either with Apache/htaccess, or in a WP plugin or Theme.
To attempt to eliminate WP as the cause of this specific issue, I'd try creating a php file with the following in it:
<?
if (isset($_POST["field"]))
echo $_POST["field"];
?>
<form method='post'>
<input type='hidden' name='field' value='TEST'>
<input type='submit' value='Test'>
</form>
If clicking "Test" does not result in the same 403 error, then it's something happening with WP specifically. If it does result in a 403, then it's a much more annoying problem that you are going to want to take up with your hosting provider.
If it is a WP problem, the first thing I would do is to start deactivating plugins 1 by 1, starting with the plugins I think are the most likely culprits. If I have no reason to suspect one over another, I just disabled them all, 1 at a time. Once a plugin is disabled, I try to recreate the original issue. If the problem still happens, it's obvious that plugin wasn't at fault, and I reactivate it and test the next one. 9 times out of 10, my issue is found this way. Be careful when trying this, as some plugins will clear their settings when they're deactivated.
If that doesn't solve the issue, I'll try a different theme and see if that fixes it. Obviously if the problem is gone when you try a new theme, you know where your problem is. Again, some themes can have setting associated with them, and changing the theme can lose those settings.
Finally, check your wp-content/mu-plugins folder for plugins that are always active and don't always show up in your list of plugins.
I realize this post is as ancient as time itself but I've run into a similar problem took me forever to figure out what was going on until i realized all I had to do is add:
Options +FollowSymLinks
At the top of the .htaccess file and presto! It worked.
Options +FollowSymLinks
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Credit goes to this good man: http://www.coolestguyplanettech.com/403-forbidden-error-wordpress-htaccess/
I also had a similar issue, apparently wordpress has some problems with some bits of code I tried to add in my post. I managed to bypass the issue by surrounding the code in <pre> tags.
Mostly, 403 forbidden error is because of four reasons 1. File permission. 2. Issue with plugins. 3. Hotlink protection 4. issue with .htaccess file 5. Your CDN(Content Delivery Network). For solving this error you need to check all these aspects to remove the error.
check the file permission as you know
the file has permission for 644 and the directory 755
Deactivate the plugins. Sometimes you might get errors because of plugins
next you need to delete .htaccess file and create a new file with the below code
# BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Next you need to check hotlink protection for your site. As it proved your website to link media or files from other sites.
lastly, you need to check for CDN you can disable it to know if it causing error or not.
I know my answer is late in coming but just wanted to add my 2 cents.
I would recommend checking the .htaccess file to make sure it is similar to below.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
You could try adding Options +FollowSymLinks as adamj stated in his answer so the .htaccess would look similar to below.
Options +FollowSymLinks
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Check to ensure that no plugin are causing the issue. Disable all plugins to see if the issue persist. If it doesnt, it would be a process of elimination to figure out which one is the cause.
Finally, I have removed the .htaccess file and that also worked for me but no .htaccess file would means no URL rewrite unless your web server is otherwise configured.
I hope this helps someone.

Wordpress is asking me to re-install even though I had it installed

All,
I wasn't paying attention and uploaded the wp-config.php to my wordpress site. I had it installed and it was working good but now everytime I go back to the site it's making me re-install Wordpress. How can I get my old wordpress site back again? I still see everything on in my database etc. I tried to re-update my table prefix but it doesn't work. How can I get it back? Please help!!
Thanks in advance!
Probably you do no have write access over the wp-config.php. Edit manually with the correct data (user, password, database) and it should work.
Also check .htaccess to have the correct form. Here is a default one:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Resources