News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Content Management System

Started by atokar, December 15, 2009, 07:08:20 PM

Previous topic - Next topic

Arantor

Without being funny, there IS a warning about using it with Pretty URLs.

And I thought Pretty URLs didn't modify the link to admin to avoid such an issue in the first place.

luismanson

i posted about this about three posts before.... you will need to recreate you old .htaccess
try
YOUR.SITE.com/index.php?action=admin;area=pretty
or:

kaib0rg

tried making my .htaccess file just the line you posted, didnt help with the admin page.

using the action=admin;area=pretty sends me to login to my admin area, after entering the password it simply redirects to the pretty url area again.

luismanson

this is my .htaccess, edit RewriteBase / for your needs.... the slash is because the main domain is the forum (not site.com/forum )


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

RewriteEngine on
RewriteBase /

# Rules for: actions
RewriteRule ^(activate|admin|ads|announcements|announcement|attachapprove|board|buddy)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(buddies|calendar|cms|cmsadmin|clock|collapse|coppa|credits)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(deletemsg|display|dlattach|editpoll|editpoll2|emailuser|findmember|groups)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(help|helpadmin|im|jseditor|jsmodify|jsoption|lock|lockvoting)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(login|login2|logout|markasread|mergetopics|mlist|moderate|modifycat)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(modifykarma|viewkarma|ownkarma|otherkarma|movetopic|movetopic2|notify|notifyboard)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(openidreturn|pm|post|post2|prefix|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|reminder|removepoll|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(reporttm|requestmembers|restoretopic|search|search2|sendtopic|sigrotator|sitemap)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|stats|sticky|theme|trackip)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(about:mozilla|about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote|viewquery)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewsmfile|who|\.xml|xmlhttp|form|facebook)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^page/([a-zA-Z0-9_-]*) ./index.php?action=cms;page=$1 [L,QSA]
# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

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

# PRETTYURLS MOD ENDS


Winex

:@
When I was instaled this mod, server is showing:
500 Internal Server Error

On localhost.

Verso

The following link should take me to a board called PROFESSIONAL SPORTS but when it's clicked it goes straight to the HOMEPAGE

http://www.suffolksportsforum.co.uk/index.php#c18

How can I change that?

thellie

winex - check your server is running apache. if so, drop in phpinfo.php file into the webserver and access the page... then do a find on 'mod_rewrite'. if it's there, then i can't help you, but if it's not there, then you need to enable it.

do this in your_server_folder/apache/conf/httpd.conf

find the mod_rewrite line, and remove the # (hash) at the start of the line... that should do it - i don't think you need to reboot...?
If you have any support questions, feel free to ask - be safe in the knowledge that I won't help because... I know nothing!

Advertisement: