Page 1 of 1

Enabling SEO links

PostPosted: Thu Sep 11, 2014 1:08 am
by MaBoRaK
loading......

Hello folks, to enable seo links with Spinning addon you need to:

Edit the file: spins/config/config.php
Change the code:
Code: Select all
define("ADDON_SPINS_URL_SEO",false);
define("ADDON_SPINS_URL_SEO_SEPARATOR","-");
define("ADDON_SPINS_URL_SEO_TXT_LINK_EXTENSION",".html"); //can be .txt
define("ADDON_SPINS_URL_SEO_HTML_LINK_EXTENSION",".html");


to

Code: Select all
define("ADDON_SPINS_URL_SEO",true);  //<-- set to TRUE
define("ADDON_SPINS_URL_SEO_SEPARATOR","-"); //<-- the SEO separator, actually supports: "/" "-" "_" "." "|"
define("ADDON_SPINS_URL_SEO_TXT_LINK_EXTENSION",".html"); //can be .txt
define("ADDON_SPINS_URL_SEO_HTML_LINK_EXTENSION",".html");


Edit the file: /path/to/i.em/.htaccess
and add:
Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^L([0-9]+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]H\.html$ link.php?M=$1&N=$2&L=$3&F=H [QSA,L]

RewriteRule ^L([0-9]+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]T\.txt$ link.php?M=$1&N=$2&L=$3&F=T [QSA,L]
RewriteRule ^L([0-9]+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]T\.html$ link.php?M=$1&N=$2&L=$3&F=T [QSA,L]


RewriteRule ^O([0-9]+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|](H|T)\.jpg$ open.php?M=$1&L=$2&N=$3&F=$4&image=.jpg [QSA,L]
RewriteRule ^U([0-9]+)[\/|\-|_|\.|\|]([a-z0-9]{32}+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]([0-9]+)\.html$ unsubscribe.php?M=$1&C=$2&L=$3&N=$4 [QSA,L]
RewriteRule ^U([0-9]+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]([a-z0-9]{32}+)\.html$ unsubscribe.php?&M=$1&L=$2&C=$3 [QSA,L]
RewriteRule ^D([0-9]+)[\/|\-|_|\.|\|]([a-z0-9]{32}+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]([0-9]+)\.html$ display.php?M=$1&C=$2&S=$3&L=$4&N=$5 [QSA,L]
RewriteRule ^D([0-9]+)[\/|\-|_|\.|\|]([a-z0-9]{32}+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]([0-9]+)\.html\&rs=(.*)$ display.php?M=$1&C=$2&S=$3&L=$4&N=$5&rs=$6 [QSA,L]


RewriteRule ^F([0-9]+)[\/|\-|_|\.|\|]([a-z0-9]{32}+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]([0-9]+)[\/|\-|_|\.|\|]([0-9]+)\.html$ sendfriend.php?M=$1&C=$2&L=$3&N=$4&F=$5&i=$6 [QSA,L]


</IfModule>


Thats all, cheers.

connection closed.

Re: Enabling SEO links

PostPosted: Fri Sep 26, 2014 2:26 am
by brianhill
Do i need to change the DNS of added domain or subdomains in order to make it work?