Friendly and pages regular expression
-
Hi, I am trying to fix this with a reg expression but I dont know how.
Here is the example:
I would like to have my link like this:
mysite.com/noticias/123/here-comes-the-title-page-2
I have a mod_rewrite rule with this:
RewriteRule ^/noticias/([a-zA-Z0-9]+)/([a-zA-Z0-9-]+)-(pagina)-([0-9]+)$ /myphp.php?&id=$1&ipag=$4 [L,NC]
It doesnt work. I think that the problem resides here ([a-zA-Z0-9-]+) because the title is split with "-" and the rule doenst know when the title finish.
Now, if I have a rule like this it works:
mysite.com/noticias/123/here-comes-the-title_page-2
RewriteRule ^/noticias/([a-zA-Z0-9]+)/([a-zA-Z0-9-]+)_(pagina)-([0-9]+)$ /myphp.php?&id=$1&ipag=$4 [L,NC]
How can I fix this to have a "-pagina" instead of "_pagina"
Thanks
-
May I know the platform of website ? If it is wordpress, just one plugin is needed in that case.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
301 redirect single page
I have a popular page on one domain and I did 301 redirect of it to another domain. Just one single page. Both the sites are very related to each other. Will the backlinks get transferred? Its been more than a week but nothing shows up in webmaster tools.
Link Building | | anran0 -
Content of the Product Page
Hi Everybody : how can you tell if the content on the product pages are accessible by google ? please have a look at my product page : http://www.fireplaceproducts.co.uk/stoves/aarrow-stoves/aarrow-ecoburn-defra-wood-burning-stove/ i used classes in product page to set the key features, construction ,... i notices other companies done these as text and they get better ranks do you think that's the reason ? also to test that i added the text exact same as the key features , construction ,... as additional information at the end of the product page , would you thin that would be considered as duplication ? Kind Regards Arta
Link Building | | fireproductsuk0 -
Domain and page backlinks
Hello Everyone, I am new at SEO, and I am a bit confused with the following situation: I have domain, wordpress site on it, and I am building backlinks to it (testing). I do not have "home" page among pages in wordpress, if it means anything. When I build links, i use different anchor texts, but they all point to http://somethingsomething.net -Ahrefs shows that I have 830 backlinks from 45 domains, to my URL, which is http://somethingsomething.net (it is also my site's home page address) -MOZ;s Open site explorer, on the other hand, shows the following: 8 internal links and 0 external links for page specific metrics, and 878 total links 0 external for root domain metrics. -Google Webmaster tools shows 10 external links pointing to my site Please can someone explain to me what is happening here? Thanks a lot
Link Building | | ShivFriv770 -
Building my Portfolio of 70 MicroNiche Sites (10-15 Pages of Content)
Hello Moz Community, I just bought 70 new domains in the past month in different niches with exact match domains, installing these sites on 2 different hostgator servers, installing all the plugins needed etc. and start publishing first 10 articles on each site. ( the keyword research was done with long tail pro and choosing the best long tails with MOZ difficulty grader that is under 40-45.) My question is the following: If I will have some of these sites that will don’t rank in Google in the next 3-6 months for the main keyword without building links…what will be the best course/method/resources I need to know about building quality backlinks and having the time to do these tasks on each website to be sure that every site will be a winner, or even 50-70% of them in both traffic & money ROI !?! I want to have a minimum of 10 sites that will make around 150$ per month because my Intention is to sell these sites on flippa for higher multiples of 15-20 monthly revenue. ( I sold my first website on flippa in September for 1650$ and is awesome. I want to repeat this success at a higher level ) Thank you ! I built niche sites since February 2012 but in terms of building backlinks to microniche sites I didn’t do too many things in the past when is about backlinking (just submitting in directories) so I ask about the experience of this community. Which are the best methods to build links in 2013 J Best regards, Sebastian Papp & His Team
Link Building | | Sebastyan220 -
One page website SEO
Can a one page website rank well with the right SEO? I am building a new site so it is best to put the content related to two or three related items on one page or create seperate pages? Surely by creating just one page I can put all my link building efforts into improving the authority of that page as opposed to spreading my time over 3?
Link Building | | SamCUK0 -
Linking to root domain or index page
While link building, should I link to index page of my website i.e www.mydomainname.com/index.html or should I link to root domain i.e www.mydomainname,com Also I see duplicate title error for index page and root domain in error statistic. How can I get rid of this.
Link Building | | ArtiKalra0 -
Contest Page Generating Links
My company is in the middle of a big contest that is generating thousands of backlinks pointing to the contest page on our domain. How do you suggest best using this authority we're building up with these backlinks to spread it to the pages we'd like to rank for, especially after the contest is over and we take down the page?
Link Building | | Hakkasan0 -
Will building up the page rank of a page you have a inbound link bring any benefit?
Right then here we go You have a link in an article on a well known national newspaper site that points at your website. Is there any benefit of linking to the newspaper article in order to build up the PR of the article page and therefore passing over some link "juice"? Sub questions 1. Would it be more beneficial simply to gain links to your main website? 2. What are the chances of the article going into the archives and then at some stage being deleted? 3. If the article link points to a domain, which then forwards to a another domain will this pass on any "juice"? 4. If the article points to a domain that then 301's to another domain will this pass on any "juice"? 5. Does Google simply register the link and "juice" on the first pass or will it revisit and upgrade the "juice"? 6. What are the negatives? 7. What are the positives?
Link Building | | therealmarkhall0