raasm007
02-03-2006, 06:22 PM
I need to change the .htaccess of my site for a plugin...here are the instructions...
Now open the .htaccess file you created for the permalinks. It should be in your root directory, depending on the installation. Find the line that says "index.php". On my server it looks like this:
RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
Duplicate that line (copy and paste it). You need to change two things here. First, you need to add "pdf/" before the "?$"; then you need to change "index.php" to "wp2pdf/wp2pdf.php" (again, if you installed WP2PDF into a different directory, change it accordingly).
On my server, the line looks like this:
RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/pdf/?$ /wp2pdf/wp2pdf.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
It will probably look different in you .htaccess, depending on the structure of your Permalinks.
Now the .htaccess of mine looks like this :
#
# URL rewriting for Etomite CMS
# Copyright AAB '04
# Modified RAD '05
#
# To use friendly URLs for Etomite you need to uncomment the three Rewrite directives
# Make sure RewriteBase points to the directory where you installed Etomite
# e.g. / if your installation is in root
# or /Etomite if your installation is in the Etomite subdirectory
#
# You must be running on Apache with mod_rewrite to be able to use this functionality.
#
# Remember, you must rename this file to .htaccess instead of the default ht.access
#
RewriteEngine On
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^.*\.idx$
#
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
RewriteRule ^.*\.idx$ /404.html [F,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>
# END WordPress
Can u guys help ?
Now open the .htaccess file you created for the permalinks. It should be in your root directory, depending on the installation. Find the line that says "index.php". On my server it looks like this:
RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
Duplicate that line (copy and paste it). You need to change two things here. First, you need to add "pdf/" before the "?$"; then you need to change "index.php" to "wp2pdf/wp2pdf.php" (again, if you installed WP2PDF into a different directory, change it accordingly).
On my server, the line looks like this:
RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/pdf/?$ /wp2pdf/wp2pdf.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
It will probably look different in you .htaccess, depending on the structure of your Permalinks.
Now the .htaccess of mine looks like this :
#
# URL rewriting for Etomite CMS
# Copyright AAB '04
# Modified RAD '05
#
# To use friendly URLs for Etomite you need to uncomment the three Rewrite directives
# Make sure RewriteBase points to the directory where you installed Etomite
# e.g. / if your installation is in root
# or /Etomite if your installation is in the Etomite subdirectory
#
# You must be running on Apache with mod_rewrite to be able to use this functionality.
#
# Remember, you must rename this file to .htaccess instead of the default ht.access
#
RewriteEngine On
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^.*\.idx$
#
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
RewriteRule ^.*\.idx$ /404.html [F,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>
# END WordPress
Can u guys help ?