Pretty URLs

Started by SMFHacks.com Team, January 31, 2007, 10:56:43 AM

Previous topic - Next topic

Antes

#5200
is it possible PrettyURL uses another .htaccess ( not stored in root ) like

/smf/.htaccess ?

well thing is , my Blog & Forum in root dir, but Blog using index.php , forum using forum.php , when i setup a SEF mod ( SSEF or PrettyURL ) firstly looking /index.php and giving error ,

Code (.htaccess) Select

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

# END WordPress

redirect 301 /wwwRedirect/WIRELESS_PROTOCOL/ http://www.mmobrowser.com/forum.php

# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: May 23, 2010, 1:43

RewriteEngine on
RewriteBase /

# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./forum.php?pretty;action=profile;user=$1 [L,QSA]

# Rules for: actions


# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./forum.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./forum.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./forum.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./forum.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Vincent Volmer

Thanks Daydreamer, will look at it this week!


JJMPSP

Hello. I posted about a week ago thinking that this mod was causing a problem with the searchbox on my forum.
I then got a reply from someone saying that my index file was incorrect or something, so I posted my index file.

Could someone take a look at this thread : http://www.simplemachines.org/community/index.php?topic=382980.0
And see if they can find the problem ?

Thank you very much :)

protonxl

#5204
hi i installed these and all my other 3 domains on the sites stopped working (permalinks from wordpress)
how can i fix this?

*** FIXED ***

I guess pretty url changed the .htaccess

so i created a new .htaccess at the roof of each other domain and added this in it

RewriteEngine On

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>



I have Wordpress running on other domains.. it fixed it.




However i use Pretty URL and Share this Topic

if i share the topic on facebook and someone clicks on it
it takes it back to

mydomain.com/index.php?topic=3257.0

and says 404 page not found.

if i refresh the same page.. it rewrites the link and goes to topic.

Khurram Abbasi

#5205
Quote from: Khurram Abbasi link=topic=383090.msg2641070#msg2641070   date=1274678668
hi all ,



i am using pretty urls Mod ,   i change one of my board name and pretty url from http://www.travelermania.com/travelers-rest-room   to http://www.travelermania.com/off-topic1/ ,

i   want when i open old link  it redirect to new link , which doesn't   happend now , i run pretty url maintenance after rename board name and   pretty url ...

i ask this question in another topic , http://www.simplemachines.org/community/index.php?topic=383090.0
one another problem is that when i uninstall Mod the old Pretty Url doesn't redirect and show 404 error , and when mod is install when i create new topic  when i hit the post button after a long processing its show me " The page isn't redirecting properly ". when  i go back and check in broad topic is created, now if it remain install it create problem and i remove it also create problem , i think there is big mess with my forum ,
i am here for solution ,

vbgamer45

There is a reverter package on the modsite if you choose the uninstall pretty urls to keep the old links working
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Khurram Abbasi

Quote from: vbgamer45 on May 25, 2010, 01:10:08 PM
There is a reverter package on the modsite if you choose the uninstall pretty urls to keep the old links working

uninstall this mod now , but which url i share created by pretty url on many social networks and other site are not working now , when i click on  them 404 not found error occur , is there any way to fix this problem ,

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


Vincent Volmer

Quote from: vbgamer45 on May 25, 2010, 02:16:01 PM
Did you try the reverter package?

The package is for SMF2.0RC1 and version 0,91 of the PrettyURL's: <install for="2.0 Beta 3, 2.0 Beta 3 Public, 2.0 Beta 3.1 Public, 2.0 Beta 4, 2.0 Beta 4 Public, 2.0 RC1"> <version>0.9.1</version>

Does this work with RC3 and PrettyURLs 1.0 (is it save to use)?

BLueSS

Quote from: anakmacan on April 13, 2010, 12:45:23 PM
Hey it works with foxy & aeva, just add Nao's code into prettyurls-filter.php !! :D

Quote//   Filter Aeva Media URLs
function pretty_aeva_filter($urls)
{
   global $boardurl;

   $pattern = array(
      '~.*[?;&]action=media;sa=media;in=([0-9]+);(thumba?|preview)(.*)~S',
      '~.*[?;&]action=media;sa=(album|item|media);in=([0-9]+)(.*)~S',
      '~.*[?;&]action=media(.*)~S',
   );
   $replacement = array(
      $boardurl . '/media/$2/$1/?$3',
      $boardurl . '/media/$1/$2/?$3',
      $boardurl . '/media/?$2',
   );
   foreach ($urls as $url_id => $url)
      if (!isset($url['replacement']) && strpos($url['url'], 'action=media') !== false)
         $urls[$url_id]['replacement'] = preg_replace($pattern, $replacement, $url['url']);
   return $urls;
}

I just tried adding the code to the file, and I don't see any option to work with Aeva Media yet. Isn't there supposed to be the other half of the code inserted as well?  I'm still running RC (not RCb, because the upgrade requires custom install).

Khurram Abbasi

Quote from: vbgamer45 on May 25, 2010, 02:16:01 PM
Did you try the reverter package?

yes i try reverter ,

Quote from: aishaweb on May 25, 2010, 02:26:17 PM
If this is the site it works OK for me:

http://www.travelermania.com/index.php?topic=12633.0

now i completely remove the Mod , the link which Mod converter and i make as back link on different site are not working now ,

http://www.travelermania.com/south-asia/different-cultures-of-india/   or http://www.travelermania.com/south-asia/amazing-cultural-and-other-facts-about-pakistan/ its now redirect to main page not opening the topic...

more check this topic i face this problem after Mod uninstall ,,
http://www.simplemachines.org/community/index.php?topic=383466.0

Khurram Abbasi

Quote from: Vincent Volmer on May 25, 2010, 02:29:22 PM
Quote from: vbgamer45 on May 25, 2010, 02:16:01 PM
Did you try the reverter package?

The package is for SMF2.0RC1 and version 0,91 of the PrettyURL's: <install for="2.0 Beta 3, 2.0 Beta 3 Public, 2.0 Beta 3.1 Public, 2.0 Beta 4, 2.0 Beta 4 Public, 2.0 RC1"> <version>0.9.1</version>

Does this work with RC3 and PrettyURLs 1.0 (is it save to use)?

i also try this mod with revert , it install easily , when i add another board and try to rename some board , i face problem which i am discussing here ,,

Yağız...

I have a problem with that. When I put my social share codes, it only shows the topic url, and not the social url. And this happens only when there is a "?" in the url, with Friend Feed it's working. Eg:
<p><a href="http://www.facebook.com/share.php?u=', $scripturl, '?topic=', $context['current_topic'], '.0" class="facebook">Facebook</a></p>
<p><a href="http://friendfeed.com/share/bookmarklet/frame#url=', $scripturl, '?topic=', $context['current_topic'], '.0" class="feed">Friend Feed</a></p>

http://www.site.com/yagiz/topic-name/
http://friendfeed.com/share/bookmarklet/frame#url=http://site/index.php?topic=781.0

Özgür

@vbgamer why we don't use the item titles in urls for aeva. I already make a package for this.
http://smf-media.com/community/index.php?topic=983.0
So Long

Nao 尚

Quote from: Daydreamer on May 27, 2010, 05:30:48 PM
@vbgamer why we don't use the item titles in urls for aeva. I already make a package for this.
http://smf-media.com/community/index.php?topic=983.0
Because I didn't provide that...
I'm not too fond of adding more SQL queries to load titles when most people don't even care to fill out the title of a picture... So what's the point in having a query sent just to retrieve the URL "/1234/photo12/"?
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Özgür

Quote from: Nao on May 27, 2010, 05:46:26 PM
Quote from: Daydreamer on May 27, 2010, 05:30:48 PM
@vbgamer why we don't use the item titles in urls for aeva. I already make a package for this.
http://smf-media.com/community/index.php?topic=983.0
Because I didn't provide that...
I'm not too fond of adding more SQL queries to load titles when most people don't even care to fill out the title of a picture... So what's the point in having a query sent just to retrieve the URL "/1234/photo12/"?
It's seo feature. It's helped too much to search engine. Maybe "Photo 12" is not important keyword. And i know that. But it is important for videos. Maybe you have "twilight-saga-new-moon-trailer" in your url or something like that?  This not "only" one seo technic. Or maybe not tooo important. But it is helped.
And you must look at that http://forums.searchenginewatch.com/showthread.php?t=2526
So Long

Nao 尚

It's not against you Daydreamer -- but I'll be very blunt about it: I don't give a damn about SEO for Aeva Media.
SEO is what spawned spammers in the first place. So you're not going to get me to read such a long link I'm afraid.
Aeva Media is there to allow people to publish their holiday pictures and share them with their friends. I didn't work on it for such a long time to please people who only swear by SEO and give me links to complicated pages that try to turn what used to be a fun hobby into a science and a job where everyone will soon be a lawyer. :P

(Yeah, don't mind me, I'm in my "screw this capitalistic world!" hour ::))
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

codevarun

#5219
 Undefined index: pretty_enable_filters

I am getting thousands of error ... in line 105


if ((isset($context['pretty']['oldschoolquery']) || $context['pretty']['query_string']['board'] != $context['pretty']['board_urls'][$board]) && $modSettings['pretty_enable_filters'])
106:      {
107:         $filterData = unserialize($modSettings['pretty_filters']);
108:         if ($filterData['topics']['enabled'])
109:         {
110:            $url = 'topic=' . $topic . '.' . (isset($_REQUEST['start']) ? $_REQUEST['start'] : '0') . (isset($_REQUEST['prev_next']) ? ';prev_next=' . $_REQUEST['prev_next'] : '') . (isset($_REQUEST['topicseen']) ? ';topicseen' : '') . (isset($_REQUEST['all']) ? ';all' : '') . (isset($_REQUEST['viewResults']) ? ';viewResults' : '');
111:            header('HTTP/1.1 301 Moved Permanently');
112:            redirectexit($url, false);
113:         }
114:      }
Join: http://www.helponrelation.com/forum/

LETS HELP OTHERS

Advertisement: