Tag Info

New answers tagged

0

http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install You have to COPY the index.php ot to the root and edit it to add the sub dir path.


0

In your htaccess add the following (before the WordPress rewrites): Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L] The above will make a permanent redirect from non-WWW to WWW. Alternatively you can do this in Google Webmaster Tools. Also, make sure that you ...


0

This approach is not advisable as http://example.com/page/whatever-information/ is how Wordpress deals with child pages and .htaccess Rewrites is part of how Wordpress identifies what page is being requested and what queries to run. You should probably pass the whatever-information as something called a POST variable, then have code that runs on page and ...


0

I had the axact same problem. My solution: edited/etc/apache2/sites-enabled/000-default.conf. It needs to look like: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html <Directory /> Options FollowSymLinks AllowOverride all </Directory> ...


0

On the staging server, in your wp-config.php define( 'WP_SITEURL', 'http://SERVER_IP/projectname' ); define( 'WP_HOME', WP_SITEURL ); Then: Place an empty .htaccess in /projectname Load http://SERVER_IP/projectname/wp-admin/options-permalink.php Check .htaccess - have rewrite rules been added?


0

You'll need to add a rewrite rule to your .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_REFERER} !/wp-admin/ [NC] RewriteRule ^wp-content/uploads/.+?\.(jpe?g|png|gif|svg)$ /my-page [R=301,L] </IfModule> Add this after anything added by WordPress. You'll need to replace /my-page with the slug of the page ...


0

You can try this (sorry, not previously tested). See comments inline for explanation: RewriteEngine On ## if any string separated by | is matched, it will append to ?page= RewriteRule ^(members|add-members|delete)$ admin.php?page=%1 [L,E=CLEAN_CONTACT_URL:1,QSA] ## If querystring starts with page= and is followed by any string separated by | ## put that ...



Top 50 recent answers are included